Source: django-rich Version: 1.4.0-3 Severity: serious Tags: sid bookworm User: debian...@lists.debian.org Usertags: needs-update User: debian-pyt...@lists.debian.org Usertags: python3.11 Control: affects -1 src:python3-defaults
Dear maintainer(s),We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of django-rich fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:
pass fail python3-defaults from testing 3.10.6-3 django-rich from testing 1.4.0-3 all others from testing from testing I copied some of the output at the bottom of this report.Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.
More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [0] https://bugs.debian.org/1021984 [1] https://qa.debian.org/excuses.php?package=python3-defaults https://ci.debian.net/data/autopkgtest/testing/amd64/d/django-rich/28726228/log.gz=================================== FAILURES =================================== _____________________ TestRunnerTests.test_does_not_exist ______________________
self = <tests.test_test.TestRunnerTests testMethod=test_does_not_exist> def test_does_not_exist(self): result = self.run_test("does_not_exist") assert result.returncode == 1 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[:6] == [
"E", "─" * 80,"ERROR: does_not_exist (unittest.loader._FailedTest.does_not_exist)",
"─" * 80,"ImportError: Failed to import test module: does_not_exist",
"Traceback (most recent call last):", ]E AssertionError: assert ['E', '──────... call last):'] == ['E', '──────... call last):'] E At index 2 diff: 'ERROR: does_not_exist (unittest.loader._FailedTest)' != 'ERROR: does_not_exist (unittest.loader._FailedTest.does_not_exist)'
E Full diff: E [ E 'E',E '────────────────────────────────────────────────────────────────────────────────', E - 'ERROR: does_not_exist (unittest.loader._FailedTest.does_not_exist)', E ? ---------------... E E ...Full output truncated (6 lines hidden), use '-vv' to show
tests/test_test.py:100: AssertionError______________________ TestRunnerTests.test_error_normal _______________________
self = <tests.test_test.TestRunnerTests testMethod=test_error_normal> def test_error_normal(self): result = self.run_test(f"{__name__}.ExampleTests.test_error") assert result.returncode == 1 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[1:4] == [
"E", "─" * 80,"ERROR: test_error (tests.test_test.ExampleTests.test_error)",
]E AssertionError: assert ['E', '──────...xampleTests)'] == ['E', '──────....test_error)'] E At index 2 diff: 'ERROR: test_error (tests.test_test.ExampleTests)' != 'ERROR: test_error (tests.test_test.ExampleTests.test_error)'
E Full diff: E [ E 'E',E '────────────────────────────────────────────────────────────────────────────────', E - 'ERROR: test_error (tests.test_test.ExampleTests.test_error)', E ? -----------... E E ...Full output truncated (3 lines hidden), use '-vv' to show
tests/test_test.py:171: AssertionError_______________________ TestRunnerTests.test_error_quiet _______________________
self = <tests.test_test.TestRunnerTests testMethod=test_error_quiet> def test_error_quiet(self):result = self.run_test("-v", "0", f"{__name__}.ExampleTests.test_error")
assert result.returncode == 1 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[:2] == [
"─" * 80,"ERROR: test_error (tests.test_test.ExampleTests.test_error)",
]E AssertionError: assert ['───────────...xampleTests)'] == ['───────────....test_error)'] E At index 1 diff: 'ERROR: test_error (tests.test_test.ExampleTests)' != 'ERROR: test_error (tests.test_test.ExampleTests.test_error)'
E Full diff: E [E '────────────────────────────────────────────────────────────────────────────────', E - 'ERROR: test_error (tests.test_test.ExampleTests.test_error)',
E ? ----------- E + 'ERROR: test_error (tests.test_test.ExampleTests)',...E E ...Full output truncated (2 lines hidden), use '-vv' to show
tests/test_test.py:155: AssertionError______________________ TestRunnerTests.test_error_verbose ______________________
self = <tests.test_test.TestRunnerTests testMethod=test_error_verbose> def test_error_verbose(self):result = self.run_test("-v", "2", f"{__name__}.ExampleTests.test_error")
assert result.returncode == 1 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
"test_error (tests.test_test.ExampleTests.test_error) ... ERROR",assert lines[1:5] == [
"", "─" * 80,"ERROR: test_error (tests.test_test.ExampleTests.test_error)",
]E AssertionError: assert ['test_error ...xampleTests)'] == ['test_error ....test_error)'] E At index 0 diff: 'test_error (tests.test_test.ExampleTests) ... ERROR' != 'test_error (tests.test_test.ExampleTests.test_error) ... ERROR'
E Full diff: E [E - 'test_error (tests.test_test.ExampleTests.test_error) ... ERROR',
E ? ----------- E + 'test_error (tests.test_test.ExampleTests) ... ERROR', E '',...E E ...Full output truncated (6 lines hidden), use '-vv' to show
tests/test_test.py:189: AssertionError________________ TestRunnerTests.test_expected_failure_verbose _________________
self = <tests.test_test.TestRunnerTests testMethod=test_expected_failure_verbose>
def test_expected_failure_verbose(self): result = self.run_test( "-v", "2", f"{__name__}.ExampleTests.test_expected_failure" ) assert result.returncode == 0 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[1:4] == [
( "test_expected_failure (tests.test_test.ExampleTests." + "test_expected_failure) ... expected failure" ), "", "-" * 70, ]E AssertionError: assert ['test_expect...------------'] == ['test_expect...------------'] E At index 0 diff: 'test_expected_failure (tests.test_test.ExampleTests) ... expected failure' != 'test_expected_failure (tests.test_test.ExampleTests.test_expected_failure) ... expected failure'
E Full diff: E [E - 'test_expected_failure (tests.test_test.ExampleTests.test_expected_failure) ' E ? ^^^^^ ^ -- E + 'test_expected_failure (tests.test_test.ExampleTests) ... expected failure', E ? ++ ^^^ ^ +... E E ...Full output truncated (5 lines hidden), use '-vv' to show
tests/test_test.py:317: AssertionError_____________________ TestRunnerTests.test_failure_normal ______________________
self = <tests.test_test.TestRunnerTests testMethod=test_failure_normal> def test_failure_normal(self): result = self.run_test(f"{__name__}.ExampleTests.test_failure") assert result.returncode == 1 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[1:4] == [
"F", "─" * 80,"FAIL: test_failure (tests.test_test.ExampleTests.test_failure)",
]E AssertionError: assert ['F', '──────...xampleTests)'] == ['F', '──────...est_failure)'] E At index 2 diff: 'FAIL: test_failure (tests.test_test.ExampleTests)' != 'FAIL: test_failure (tests.test_test.ExampleTests.test_failure)'
E Full diff: E [ E 'F',E '────────────────────────────────────────────────────────────────────────────────', E - 'FAIL: test_failure (tests.test_test.ExampleTests.test_failure)', E ? -------------... E E ...Full output truncated (3 lines hidden), use '-vv' to show
tests/test_test.py:225: AssertionError______________________ TestRunnerTests.test_failure_quiet ______________________
self = <tests.test_test.TestRunnerTests testMethod=test_failure_quiet> def test_failure_quiet(self):result = self.run_test("-v", "0", f"{__name__}.ExampleTests.test_failure")
assert result.returncode == 1 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[:2] == [
"─" * 80,"FAIL: test_failure (tests.test_test.ExampleTests.test_failure)",
]E AssertionError: assert ['───────────...xampleTests)'] == ['───────────...est_failure)'] E At index 1 diff: 'FAIL: test_failure (tests.test_test.ExampleTests)' != 'FAIL: test_failure (tests.test_test.ExampleTests.test_failure)'
E Full diff: E [E '────────────────────────────────────────────────────────────────────────────────', E - 'FAIL: test_failure (tests.test_test.ExampleTests.test_failure)', E ? -------------
E + 'FAIL: test_failure (tests.test_test.ExampleTests)',...E E ...Full output truncated (2 lines hidden), use '-vv' to show
tests/test_test.py:209: AssertionError_____________________ TestRunnerTests.test_failure_verbose _____________________
self = <tests.test_test.TestRunnerTests testMethod=test_failure_verbose> def test_failure_verbose(self):result = self.run_test("-v", "2", f"{__name__}.ExampleTests.test_failure")
assert result.returncode == 1 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
"test_failure (tests.test_test.ExampleTests.test_failure) ... FAIL",assert lines[1:5] == [
"", "─" * 80,"FAIL: test_failure (tests.test_test.ExampleTests.test_failure)",
]E AssertionError: assert ['test_failur...xampleTests)'] == ['test_failur...est_failure)'] E At index 0 diff: 'test_failure (tests.test_test.ExampleTests) ... FAIL' != 'test_failure (tests.test_test.ExampleTests.test_failure) ... FAIL'
E Full diff: E [E - 'test_failure (tests.test_test.ExampleTests.test_failure) ... FAIL',
E ? ------------- E + 'test_failure (tests.test_test.ExampleTests) ... FAIL', E '',...E E ...Full output truncated (6 lines hidden), use '-vv' to show
tests/test_test.py:243: AssertionError______________________ TestRunnerTests.test_pass_verbose _______________________
self = <tests.test_test.TestRunnerTests testMethod=test_pass_verbose> def test_pass_verbose(self):result = self.run_test("-v", "2", f"{__name__}.ExampleTests.test_pass")
assert result.returncode == 0 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
"test_pass (tests.test_test.ExampleTests.test_pass) ... ok",assert lines[1:4] == [
"", "-" * 70, ]E AssertionError: assert ['test_pass (...------------'] == ['test_pass (...------------'] E At index 0 diff: 'test_pass (tests.test_test.ExampleTests) ... ok' != 'test_pass (tests.test_test.ExampleTests.test_pass) ... ok'
E Full diff: E [E - 'test_pass (tests.test_test.ExampleTests.test_pass) ... ok',
E ? ---------- E + 'test_pass (tests.test_test.ExampleTests) ... ok', E '',...E E ...Full output truncated (3 lines hidden), use '-vv' to show
tests/test_test.py:138: AssertionError______________________ TestRunnerTests.test_skip_verbose _______________________
self = <tests.test_test.TestRunnerTests testMethod=test_skip_verbose> def test_skip_verbose(self):result = self.run_test("-v", "2", f"{__name__}.ExampleTests.test_skip")
assert result.returncode == 0 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[1:4] == [
("test_skip (tests.test_test.ExampleTests.test_skip) ... "
+ "skipped 'some reason'" ), "", "-" * 70, ]E assert ["test_skip (...------------'] == ["test_skip (...------------'] E At index 0 diff: "test_skip (tests.test_test.ExampleTests) ... skipped 'some reason'" != "test_skip (tests.test_test.ExampleTests.test_skip) ... skipped 'some reason'"
E Full diff: E [E - "test_skip (tests.test_test.ExampleTests.test_skip) ... skipped 'some reason'",
E ? ----------E + "test_skip (tests.test_test.ExampleTests) ... skipped 'some reason'",
E '',...E E ...Full output truncated (3 lines hidden), use '-vv' to show
tests/test_test.py:278: AssertionError________________ TestRunnerTests.test_unexpected_success_normal ________________
self = <tests.test_test.TestRunnerTests testMethod=test_unexpected_success_normal>
def test_unexpected_success_normal(self):result = self.run_test(f"{__name__}.ExampleTests.test_unexpected_success")
if django.VERSION >= (4, 1): assert result.returncode == 1 else: assert result.returncode == 0 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[1:3] == [
"u", "=" * 70, ]E AssertionError: assert ['u', '------...------------'] == ['u', '======...============'] E At index 1 diff: '----------------------------------------------------------------------' != '======================================================================'
E Full diff:E - ['u', '======================================================================'] E + ['u', '----------------------------------------------------------------------']
tests/test_test.py:359: AssertionError________________ TestRunnerTests.test_unexpected_success_quiet _________________
self = <tests.test_test.TestRunnerTests testMethod=test_unexpected_success_quiet>
def test_unexpected_success_quiet(self): result = self.run_test( "-v", "0", f"{__name__}.ExampleTests.test_unexpected_success" ) if django.VERSION >= (4, 1): assert result.returncode == 1 else: assert result.returncode == 0 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
E AssertionError: assert ['-----------...------------'] == ['===========...============'] E At index 0 diff: '----------------------------------------------------------------------' != '======================================================================'assert lines[:1] == ["=" * 70]
E Full diff:E - ['======================================================================'] E + ['----------------------------------------------------------------------']
tests/test_test.py:346: AssertionError_______________ TestRunnerTests.test_unexpected_success_verbose ________________
self = <tests.test_test.TestRunnerTests testMethod=test_unexpected_success_verbose>
def test_unexpected_success_verbose(self): result = self.run_test( "-v", "2", f"{__name__}.ExampleTests.test_unexpected_success" ) if django.VERSION >= (4, 1): assert result.returncode == 1 else: assert result.returncode == 0 lines = result.stderr.splitlines() if sys.version_info >= (3, 11):
assert lines[1:4] == [
("test_unexpected_success (tests.test_test.ExampleTests."
+ "test_unexpected_success) ... unexpected success" ), "", "=" * 70, ]E AssertionError: assert ['test_unexpe...------------'] == ['test_unexpe...============'] E At index 0 diff: 'test_unexpected_success (tests.test_test.ExampleTests) ... unexpected success' != 'test_unexpected_success (tests.test_test.ExampleTests.test_unexpected_success) ... unexpected success'
E Full diff: E [E + 'test_unexpected_success (tests.test_test.ExampleTests) ... unexpected '
E - 'test_unexpected_success 'E - '(tests.test_test.ExampleTests.test_unexpected_success) ... unexpected '
E 'success',...E E ...Full output truncated (5 lines hidden), use '-vv' to show
tests/test_test.py:379: AssertionError
OpenPGP_signature
Description: OpenPGP digital signature