[Bug 1951877] Re: FTBFS - python-testtools does not support Python 3.10

Rafael David Tinoco 1951877 at bugs.launchpad.net
Mon Nov 29 06:58:18 UTC 2021


I've used your git-ubuntu branch to generate the source package and
upload it. You (server team) will have to break this merge into the 3
commits again during next merge with upstream (debian) as I did not have
permission to upload to pkg/ubuntu/devel (not sure why).

$ dput ubuntu python-testtools_2.5.0-2ubuntu1_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: /home/rafaeldtinoco/work/sources/ubuntu/jammy/python-testtools_2.5.0-2ubuntu1_source.changes: Valid signature from A93E0E0AD83C0D0F
Checking signature on .dsc
gpg: /home/rafaeldtinoco/work/sources/ubuntu/jammy/python-testtools_2.5.0-2ubuntu1.dsc: Valid signature from A93E0E0AD83C0D0F
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading python-testtools_2.5.0-2ubuntu1.dsc: done.
  Uploading python-testtools_2.5.0-2ubuntu1.debian.tar.xz: done.
  Uploading python-testtools_2.5.0-2ubuntu1_source.buildinfo: done.
  Uploading python-testtools_2.5.0-2ubuntu1_source.changes: done.
Successfully uploaded packages.

Please follow migration to check if it migrates good, let me know
otherwise.

PS: I have "quilt refreshed" your patch to avoid hunks (in the other SRU
proposal as well). Make sure your patches apply clean wen you suggest a
merge/fix. Thanks!

** Changed in: python-testtools (Ubuntu)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1951877

Title:
  FTBFS - python-testtools does not support Python 3.10

Status in python-testtools package in Ubuntu:
  In Progress

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




More information about the Ubuntu-sponsors mailing list