Public bug reported: python-django FTBFS due to an error on the test suite (see error log below).
This issue is due to changes in python's argparse code which was backported to python 3.9. This has been fixed upstream [1,2]. The bug has also been fixed in Debian [3], however, Debian unstable has migrated to python-django 3. Hence, we should add a delta for impish, which can be dropped later for the jj series when we move to django 3. [1] https://code.djangoproject.com/ticket/33082 [2] https://github.com/django/django/pull/14826/files [3] https://salsa.debian.org/python-team/packages/python-django/-/blob/debian/sid/debian/patches/0006-Skip-a-test-that-is-fixed-upstream.patch ====================================================================== FAIL: test_subparser_invalid_option (user_commands.tests.CommandTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib/python3.9/unittest/case.py", line 592, in run self._callTestMethod(testMethod) File "/usr/lib/python3.9/unittest/case.py", line 550, in _callTestMethod method() File "/<<PKGBUILDDIR>>/tests/user_commands/tests.py", line 223, in test_subparser_invalid_option management.call_command('subparser', 'test', 12) File "/usr/lib/python3.9/contextlib.py", line 137, in __exit__ self.gen.throw(typ, value, traceback) File "/<<PKGBUILDDIR>>/django/test/testcases.py", line 676, in _assert_raises_or_warns_cm self.assertIn(expected_message, str(getattr(cm, cm_attr))) File "/usr/lib/python3.9/unittest/case.py", line 1096, in assertIn self.fail(self._formatMessage(msg, standardMsg)) File "/usr/lib/python3.9/unittest/case.py", line 668, in fail raise self.failureException(msg) AssertionError: "Error: invalid choice: 'test' (choose from 'foo')" not found in "Error: argument {foo}: invalid choice: 'test' (choose from 'foo')" ** Affects: python-django (Ubuntu) Importance: Undecided Status: New ** Tags: ftbfs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945993 Title: FTBFS 2:2.2.24-1 test_subparser_invalid_option regression with Python 3.9 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-django/+bug/1945993/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
