[Bug 2045302] [NEW] testresources autopkgtest fails against Python 3.12
Olivier Gayot
2045302 at bugs.launchpad.net
Thu Nov 30 17:55:03 UTC 2023
Public bug reported:
Running autopkgtest against Python 3.12 fails with:
418s <frozen runpy>:128: RuntimeWarning: 'testtools.run' found in sys.modules after import of package 'testtools', but prior to execution of 'testtools.run'; this may result in unpredictable behaviour
418s Tests running...
418s ======================================================================
418s ERROR: testresources.tests.test_resourced_test_case.TestResourcedTestCase.testSingleWithSetup
418s ----------------------------------------------------------------------
418s Traceback (most recent call last):
418s File "/tmp/autopkgtest.WAKmYE/build.QE6/src/testresources/tests/test_resourced_test_case.py", line 161, in testSingleWithSetup
418s self.failIf(hasattr(self.resourced_case, "foo"))
418s ^^^^^^^^^^^
418s AttributeError: 'TestResourcedTestCase' object has no attribute 'failIf'. Did you mean: 'fail'?
418s ======================================================================
418s ERROR: testresources.tests.test_resourced_test_case.TestResourcedTestCase.testTearDownResourcesDeletesResourceAttributes
418s ----------------------------------------------------------------------
418s Traceback (most recent call last):
418s File "/tmp/autopkgtest.WAKmYE/build.QE6/src/testresources/tests/test_resourced_test_case.py", line 132, in testTearDownResourcesDeletesResourceAttributes
418s self.failIf(hasattr(self.resourced_case, "foo"))
418s ^^^^^^^^^^^
418s AttributeError: 'TestResourcedTestCase' object has no attribute 'failIf'. Did you mean: 'fail'?
failIs was a deprecated alias for assertFalse. Let's use assertFalse
instead.
** Affects: testresources
Importance: Undecided
Status: New
** Affects: testresources (Ubuntu)
Importance: Undecided
Status: New
** Affects: testresources (Debian)
Importance: Unknown
Status: Unknown
** Bug watch added: Debian Bug tracker #1056533
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056533
** Also affects: testresources (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056533
Importance: Unknown
Status: Unknown
** Also affects: testresources
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to testresources in Ubuntu.
https://bugs.launchpad.net/bugs/2045302
Title:
testresources autopkgtest fails against Python 3.12
Status in testresources:
New
Status in testresources package in Ubuntu:
New
Status in testresources package in Debian:
Unknown
Bug description:
Running autopkgtest against Python 3.12 fails with:
418s <frozen runpy>:128: RuntimeWarning: 'testtools.run' found in sys.modules after import of package 'testtools', but prior to execution of 'testtools.run'; this may result in unpredictable behaviour
418s Tests running...
418s ======================================================================
418s ERROR: testresources.tests.test_resourced_test_case.TestResourcedTestCase.testSingleWithSetup
418s ----------------------------------------------------------------------
418s Traceback (most recent call last):
418s File "/tmp/autopkgtest.WAKmYE/build.QE6/src/testresources/tests/test_resourced_test_case.py", line 161, in testSingleWithSetup
418s self.failIf(hasattr(self.resourced_case, "foo"))
418s ^^^^^^^^^^^
418s AttributeError: 'TestResourcedTestCase' object has no attribute 'failIf'. Did you mean: 'fail'?
418s ======================================================================
418s ERROR: testresources.tests.test_resourced_test_case.TestResourcedTestCase.testTearDownResourcesDeletesResourceAttributes
418s ----------------------------------------------------------------------
418s Traceback (most recent call last):
418s File "/tmp/autopkgtest.WAKmYE/build.QE6/src/testresources/tests/test_resourced_test_case.py", line 132, in testTearDownResourcesDeletesResourceAttributes
418s self.failIf(hasattr(self.resourced_case, "foo"))
418s ^^^^^^^^^^^
418s AttributeError: 'TestResourcedTestCase' object has no attribute 'failIf'. Did you mean: 'fail'?
failIs was a deprecated alias for assertFalse. Let's use assertFalse
instead.
To manage notifications about this bug go to:
https://bugs.launchpad.net/testresources/+bug/2045302/+subscriptions
More information about the foundations-bugs
mailing list