Source: django-rich
Version: 1.4.0-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # Upstream uses a more agressive call, wont work here
> # as at least the package we build isn't installed so
> # using a modified pytest call.
> dh_auto_test -- --system=custom --test-args="{interpreter} -m coverage run -m 
> pytest tests"
> I: pybuild base:240: python3.10 -m coverage run -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack
> django: settings: tests.settings (from option)
> rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
> plugins: django-4.5.2
> collected 48 items
> 
> tests/test_test.py sssssssssssss                                         [ 
> 27%]
> tests/test_management.py ........                                        [ 
> 43%]
> tests/test_test.py ......FFFF..F.FFF..F...FFFF                           
> [100%]
> 
> =================================== 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()
> >       assert lines[:6] == [
>             "E",
>             "─" * 80,
>             "ERROR: does_not_exist (unittest.loader._FailedTest)",
>             "─" * 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.does_not_exist)' != 'ERROR: does_not_exist 
> (unittest.loader._FailedTest)'
> E         Use -v to get more diff
> 
> tests/test_test.py:99: 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()
> >       assert lines[1:4] == [
>             "E",
>             "─" * 80,
>             "ERROR: test_error (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['E', '──────....test_error)'] == ['E', 
> '──────...xampleTests)']
> E         At index 2 diff: 'ERROR: test_error 
> (tests.test_test.ExampleTests.test_error)' != 'ERROR: test_error 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:147: 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()
> >       assert lines[:2] == [
>             "─" * 80,
>             "ERROR: test_error (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['───────────....test_error)'] == 
> ['───────────...xampleTests)']
> E         At index 1 diff: 'ERROR: test_error 
> (tests.test_test.ExampleTests.test_error)' != 'ERROR: test_error 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:137: 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()
> >       assert lines[1:5] == [
>             "test_error (tests.test_test.ExampleTests) ... ERROR",
>             "",
>             "─" * 80,
>             "ERROR: test_error (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['test_error ....test_error)'] == ['test_error 
> ...xampleTests)']
> E         At index 0 diff: 'test_error 
> (tests.test_test.ExampleTests.test_error) ... ERROR' != 'test_error 
> (tests.test_test.ExampleTests) ... ERROR'
> E         Use -v to get more diff
> 
> tests/test_test.py:158: 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()
> >       assert lines[1:4] == [
>             (
>                 "test_expected_failure (tests.test_test.ExampleTests)"
>                 + " ... expected failure"
>             ),
>             "",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['test_expect...------------'] == 
> ['test_expect...------------']
> E         At index 0 diff: 'test_expected_failure 
> (tests.test_test.ExampleTests.test_expected_failure) ... expected failure' != 
> 'test_expected_failure (tests.test_test.ExampleTests) ... expected failure'
> E         Use -v to get more diff
> 
> tests/test_test.py:257: 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()
> >       assert lines[1:4] == [
>             "F",
>             "─" * 80,
>             "FAIL: test_failure (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['F', '──────...est_failure)'] == ['F', 
> '──────...xampleTests)']
> E         At index 2 diff: 'FAIL: test_failure 
> (tests.test_test.ExampleTests.test_failure)' != 'FAIL: test_failure 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:180: 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()
> >       assert lines[:2] == [
>             "─" * 80,
>             "FAIL: test_failure (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['───────────...est_failure)'] == 
> ['───────────...xampleTests)']
> E         At index 1 diff: 'FAIL: test_failure 
> (tests.test_test.ExampleTests.test_failure)' != 'FAIL: test_failure 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:170: 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()
> >       assert lines[1:5] == [
>             "test_failure (tests.test_test.ExampleTests) ... FAIL",
>             "",
>             "─" * 80,
>             "FAIL: test_failure (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['test_failur...est_failure)'] == 
> ['test_failur...xampleTests)']
> E         At index 0 diff: 'test_failure 
> (tests.test_test.ExampleTests.test_failure) ... FAIL' != 'test_failure 
> (tests.test_test.ExampleTests) ... FAIL'
> E         Use -v to get more diff
> 
> tests/test_test.py:191: 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()
> >       assert lines[1:4] == [
>             "test_pass (tests.test_test.ExampleTests) ... ok",
>             "",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['test_pass (...------------'] == ['test_pass 
> (...------------']
> E         At index 0 diff: 'test_pass 
> (tests.test_test.ExampleTests.test_pass) ... ok' != 'test_pass 
> (tests.test_test.ExampleTests) ... ok'
> E         Use -v to get more diff
> 
> tests/test_test.py:127: 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) ... "
>                     + "skipped 'some reason'"
>                 ),
>                 "",
>                 "-" * 70,
>             ]
>         else:
> >           assert lines[1:4] == [
>                 "test_skip (tests.test_test.ExampleTests) ... skipped 'some 
> reason'",
>                 "",
>                 "-" * 70,
>             ]
> E           assert ["test_skip (...------------'] == ["test_skip 
> (...------------']
> E             At index 0 diff: "test_skip 
> (tests.test_test.ExampleTests.test_skip) ... skipped 'some reason'" != 
> "test_skip (tests.test_test.ExampleTests) ... skipped 'some reason'"
> E             Use -v to get more diff
> 
> tests/test_test.py:228: 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()
> >       assert lines[1:3] == [
>             "u",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['u', '======...============'] == ['u', 
> '------...------------']
> E         At index 1 diff: 
> '======================================================================' != 
> '----------------------------------------------------------------------'
> E         Use -v to get more diff
> 
> tests/test_test.py:286: 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()
> >       assert lines[:1] == ["-" * 70]
> E       AssertionError: assert ['===========...============'] == 
> ['-----------...------------']
> E         At index 0 diff: 
> '======================================================================' != 
> '----------------------------------------------------------------------'
> E         Use -v to get more diff
> 
> tests/test_test.py:276: 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()
> >       assert lines[1:4] == [
>             (
>                 "test_unexpected_success (tests.test_test.ExampleTests) "
>                 + "... unexpected success"
>             ),
>             "",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['test_unexpe...============'] == 
> ['test_unexpe...------------']
> E         At index 0 diff: 'test_unexpected_success 
> (tests.test_test.ExampleTests.test_unexpected_success) ... unexpected 
> success' != 'test_unexpected_success (tests.test_test.ExampleTests) ... 
> unexpected success'
> E         Use -v to get more diff
> 
> tests/test_test.py:300: AssertionError
> =========================== short test summary info 
> ============================
> FAILED tests/test_test.py::TestRunnerTests::test_does_not_exist - 
> AssertionEr...
> FAILED tests/test_test.py::TestRunnerTests::test_error_normal - 
> AssertionErro...
> FAILED tests/test_test.py::TestRunnerTests::test_error_quiet - 
> AssertionError...
> FAILED tests/test_test.py::TestRunnerTests::test_error_verbose - 
> AssertionErr...
> FAILED tests/test_test.py::TestRunnerTests::test_expected_failure_verbose - 
> A...
> FAILED tests/test_test.py::TestRunnerTests::test_failure_normal - 
> AssertionEr...
> FAILED tests/test_test.py::TestRunnerTests::test_failure_quiet - 
> AssertionErr...
> FAILED tests/test_test.py::TestRunnerTests::test_failure_verbose - 
> AssertionE...
> FAILED tests/test_test.py::TestRunnerTests::test_pass_verbose - 
> AssertionErro...
> FAILED tests/test_test.py::TestRunnerTests::test_skip_verbose - assert 
> ["test...
> FAILED tests/test_test.py::TestRunnerTests::test_unexpected_success_normal - 
> ...
> FAILED tests/test_test.py::TestRunnerTests::test_unexpected_success_quiet - 
> A...
> FAILED tests/test_test.py::TestRunnerTests::test_unexpected_success_verbose
> ================== 13 failed, 22 passed, 13 skipped in 26.91s 
> ==================
> E: pybuild pybuild:388: test: plugin custom failed with: exit code=1: 
> python3.10 -m coverage run -m pytest tests
> I: pybuild base:240: python3.11 -m coverage run -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack
> django: settings: tests.settings (from option)
> rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
> plugins: django-4.5.2
> collected 48 items
> 
> tests/test_test.py sssssssssssss                                         [ 
> 27%]
> tests/test_management.py ........                                        [ 
> 43%]
> tests/test_test.py ......FFFF..F.FFF..F...FFFF                           
> [100%]
> 
> =================================== 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()
> >       assert lines[:6] == [
>             "E",
>             "─" * 80,
>             "ERROR: does_not_exist (unittest.loader._FailedTest)",
>             "─" * 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.does_not_exist)' != 'ERROR: does_not_exist 
> (unittest.loader._FailedTest)'
> E         Use -v to get more diff
> 
> tests/test_test.py:99: 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()
> >       assert lines[1:4] == [
>             "E",
>             "─" * 80,
>             "ERROR: test_error (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['E', '──────....test_error)'] == ['E', 
> '──────...xampleTests)']
> E         At index 2 diff: 'ERROR: test_error 
> (tests.test_test.ExampleTests.test_error)' != 'ERROR: test_error 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:147: 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()
> >       assert lines[:2] == [
>             "─" * 80,
>             "ERROR: test_error (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['───────────....test_error)'] == 
> ['───────────...xampleTests)']
> E         At index 1 diff: 'ERROR: test_error 
> (tests.test_test.ExampleTests.test_error)' != 'ERROR: test_error 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:137: 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()
> >       assert lines[1:5] == [
>             "test_error (tests.test_test.ExampleTests) ... ERROR",
>             "",
>             "─" * 80,
>             "ERROR: test_error (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['test_error ....test_error)'] == ['test_error 
> ...xampleTests)']
> E         At index 0 diff: 'test_error 
> (tests.test_test.ExampleTests.test_error) ... ERROR' != 'test_error 
> (tests.test_test.ExampleTests) ... ERROR'
> E         Use -v to get more diff
> 
> tests/test_test.py:158: 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()
> >       assert lines[1:4] == [
>             (
>                 "test_expected_failure (tests.test_test.ExampleTests)"
>                 + " ... expected failure"
>             ),
>             "",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['test_expect...------------'] == 
> ['test_expect...------------']
> E         At index 0 diff: 'test_expected_failure 
> (tests.test_test.ExampleTests.test_expected_failure) ... expected failure' != 
> 'test_expected_failure (tests.test_test.ExampleTests) ... expected failure'
> E         Use -v to get more diff
> 
> tests/test_test.py:257: 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()
> >       assert lines[1:4] == [
>             "F",
>             "─" * 80,
>             "FAIL: test_failure (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['F', '──────...est_failure)'] == ['F', 
> '──────...xampleTests)']
> E         At index 2 diff: 'FAIL: test_failure 
> (tests.test_test.ExampleTests.test_failure)' != 'FAIL: test_failure 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:180: 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()
> >       assert lines[:2] == [
>             "─" * 80,
>             "FAIL: test_failure (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['───────────...est_failure)'] == 
> ['───────────...xampleTests)']
> E         At index 1 diff: 'FAIL: test_failure 
> (tests.test_test.ExampleTests.test_failure)' != 'FAIL: test_failure 
> (tests.test_test.ExampleTests)'
> E         Use -v to get more diff
> 
> tests/test_test.py:170: 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()
> >       assert lines[1:5] == [
>             "test_failure (tests.test_test.ExampleTests) ... FAIL",
>             "",
>             "─" * 80,
>             "FAIL: test_failure (tests.test_test.ExampleTests)",
>         ]
> E       AssertionError: assert ['test_failur...est_failure)'] == 
> ['test_failur...xampleTests)']
> E         At index 0 diff: 'test_failure 
> (tests.test_test.ExampleTests.test_failure) ... FAIL' != 'test_failure 
> (tests.test_test.ExampleTests) ... FAIL'
> E         Use -v to get more diff
> 
> tests/test_test.py:191: 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()
> >       assert lines[1:4] == [
>             "test_pass (tests.test_test.ExampleTests) ... ok",
>             "",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['test_pass (...------------'] == ['test_pass 
> (...------------']
> E         At index 0 diff: 'test_pass 
> (tests.test_test.ExampleTests.test_pass) ... ok' != 'test_pass 
> (tests.test_test.ExampleTests) ... ok'
> E         Use -v to get more diff
> 
> tests/test_test.py:127: 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) ... "
>                     + "skipped 'some reason'"
>                 ),
>                 "",
>                 "-" * 70,
>             ]
> E           assert ["test_skip (...------------'] == ["test_skip 
> (...------------']
> E             At index 0 diff: "test_skip 
> (tests.test_test.ExampleTests.test_skip) ... skipped 'some reason'" != 
> "test_skip (tests.test_test.ExampleTests) ... skipped 'some reason'"
> E             Use -v to get more diff
> 
> tests/test_test.py:219: 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()
> >       assert lines[1:3] == [
>             "u",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['u', '======...============'] == ['u', 
> '------...------------']
> E         At index 1 diff: 
> '======================================================================' != 
> '----------------------------------------------------------------------'
> E         Use -v to get more diff
> 
> tests/test_test.py:286: 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()
> >       assert lines[:1] == ["-" * 70]
> E       AssertionError: assert ['===========...============'] == 
> ['-----------...------------']
> E         At index 0 diff: 
> '======================================================================' != 
> '----------------------------------------------------------------------'
> E         Use -v to get more diff
> 
> tests/test_test.py:276: 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()
> >       assert lines[1:4] == [
>             (
>                 "test_unexpected_success (tests.test_test.ExampleTests) "
>                 + "... unexpected success"
>             ),
>             "",
>             "-" * 70,
>         ]
> E       AssertionError: assert ['test_unexpe...============'] == 
> ['test_unexpe...------------']
> E         At index 0 diff: 'test_unexpected_success 
> (tests.test_test.ExampleTests.test_unexpected_success) ... unexpected 
> success' != 'test_unexpected_success (tests.test_test.ExampleTests) ... 
> unexpected success'
> E         Use -v to get more diff
> 
> tests/test_test.py:300: AssertionError
> =============================== warnings summary 
> ===============================
> ../../../usr/lib/python3/dist-packages/django/http/request.py:1
>   /usr/lib/python3/dist-packages/django/http/request.py:1: 
> DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
>     import cgi
> 
> ../../../usr/lib/python3/dist-packages/django/utils/encoding.py:266
>   /usr/lib/python3/dist-packages/django/utils/encoding.py:266: 
> DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead
>     encoding = locale.getdefaultlocale()[1] or 'ascii'
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED tests/test_test.py::TestRunnerTests::test_does_not_exist - 
> AssertionEr...
> FAILED tests/test_test.py::TestRunnerTests::test_error_normal - 
> AssertionErro...
> FAILED tests/test_test.py::TestRunnerTests::test_error_quiet - 
> AssertionError...
> FAILED tests/test_test.py::TestRunnerTests::test_error_verbose - 
> AssertionErr...
> FAILED tests/test_test.py::TestRunnerTests::test_expected_failure_verbose - 
> A...
> FAILED tests/test_test.py::TestRunnerTests::test_failure_normal - 
> AssertionEr...
> FAILED tests/test_test.py::TestRunnerTests::test_failure_quiet - 
> AssertionErr...
> FAILED tests/test_test.py::TestRunnerTests::test_failure_verbose - 
> AssertionE...
> FAILED tests/test_test.py::TestRunnerTests::test_pass_verbose - 
> AssertionErro...
> FAILED tests/test_test.py::TestRunnerTests::test_skip_verbose - assert 
> ["test...
> FAILED tests/test_test.py::TestRunnerTests::test_unexpected_success_normal - 
> ...
> FAILED tests/test_test.py::TestRunnerTests::test_unexpected_success_quiet - 
> A...
> FAILED tests/test_test.py::TestRunnerTests::test_unexpected_success_verbose
> ============ 13 failed, 22 passed, 13 skipped, 2 warnings in 27.79s 
> ============
> E: pybuild pybuild:388: test: plugin custom failed with: exit code=1: 
> python3.11 -m coverage run -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 
> 3.11" --system=custom "--test-args={interpreter} -m coverage run -m pytest 
> tests" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/01/13/django-rich_1.4.0-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230113;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230113&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to