This bug was fixed in the package python-testtools - 2.5.0-2ubuntu1
---------------
python-testtools (2.5.0-2ubuntu1) jammy; urgency=medium
* d/p/add-python-3.10-support.patch: Add support for Python 3.10
(LP: #1951877)
-- Athos Ribeiro <[email protected]> Mon, 22 Nov 2021
17:19:39 -0300
** Changed in: python-testtools (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python-testtools in
Ubuntu.
https://bugs.launchpad.net/bugs/1951877
Title:
FTBFS - python-testtools does not support Python 3.10
Status in python-testtools package in Ubuntu:
Fix Released
Bug description:
As shown in
https://launchpadlibrarian.net/569859852/buildlog_ubuntu-jammy-
amd64.python-testtools_2.5.0-2_BUILDING.txt.gz
python-testtools does not support Python 3.10, and FTBFS for jammy.
+ PYTHONPATH=/<<PKGBUILDDIR>> PYTHON=python3.10 python3.10 -m testtools.run
testtools.tests.test_suite
/usr/lib/python3.10/runpy.py:126: 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
warn(RuntimeWarning(msg))
No entry for terminal type "unknown";
using dumb terminal settings.
Tests running...
======================================================================
FAIL: testtools.tests.test_testresult.TestNonAsciiResults.test_syntax_error
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 2676, in
test_syntax_error
self.assertIn(self._as_output(
File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 399, in assertIn
self.assertThat(haystack, Contains(needle), message)
File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: ' File "<string>", line 1\n f(a,
b c)\n ^\nSyntaxError: ' not in 'Tests
running...\n======================================================================\nERROR:
test_syntax_error.Test.runTest\n----------------------------------------------------------------------\nTraceback
(most recent call last):\n File
"/tmp/TestNonAsciiResultsa_jvxgt3/test_syntax_error.py", line 6, in runTest\n
exec (\'f(a, b c)\')\n File "<string>", line 1\n f(a, b c)\n
^^^\nSyntaxError: invalid syntax. Perhaps you forgot a comma?\n\nRan 1 test in
0.001s\nFAILED (failures=1)\n'
======================================================================
FAIL:
testtools.tests.test_testresult.TestNonAsciiResultsWithUnittest.test_syntax_error
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 2676, in
test_syntax_error
self.assertIn(self._as_output(
File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 399, in assertIn
self.assertThat(haystack, Contains(needle), message)
File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: ' File "<string>", line 1\n f(a,
b c)\n ^\nSyntaxError: ' not in
'E\n======================================================================\nERROR:
runTest
(test_syntax_error.Test)\ntest_syntax_error.Test.runTest\n----------------------------------------------------------------------\ntesttools.testresult.real._StringException:
Traceback (most recent call last):\n File
"/tmp/TestNonAsciiResultsWithUnittest3zrnkc8g/test_syntax_error.py", line 6, in
runTest\n exec (\'f(a, b c)\')\n File "<string>", line 1\n f(a, b c)\n
^^^\nSyntaxError: invalid syntax. Perhaps you forgot a
comma?\n\n\n----------------------------------------------------------------------\nRan
1 test in 0.000s\n\nFAILED (errors=1)\n'
Ran 2625 tests in 1.221s
FAILED (failures=2)
make[1]: *** [debian/rules:36: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2021-11-20T06:46:48Z
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-testtools/+bug/1951877/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp