Source: djangorestframework Version: 3.12.4-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20211220 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>>' > PYBUILD_SYSTEM=custom \ > PYBUILD_TEST_ARGS="{interpreter} /<<PKGBUILDDIR>>/runtests.py --nolint" \ > dh_auto_test > I: pybuild base:237: python3.10 /<<PKGBUILDDIR>>/runtests.py --nolint > ============================= test session starts > ============================== > platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 > rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg > plugins: django-3.5.1, cov-3.0.0 > collected 1403 items > > tests/test_api_client.py .................... [ > 1%] > tests/test_atomic_requests.py ..... [ > 1%] > tests/test_authtoken.py ........... [ > 2%] > tests/test_bound_fields.py ........... [ > 3%] > tests/test_decorators.py .................. [ > 4%] > tests/test_description.py F.......... [ > 5%] > tests/test_encoders.py .......... [ > 6%] > tests/test_exceptions.py .......... [ > 6%] > tests/test_fields.py ................................................... [ > 10%] > ........................................................................ [ > 15%] > ........................................................................ [ > 20%] > ........................................................................ [ > 25%] > .......................... [ > 27%] > tests/test_filters.py ................................. [ > 30%] > tests/test_generics.py ....................................... [ > 32%] > tests/test_htmlrenderer.py ........ [ > 33%] > tests/test_lazy_hyperlinks.py . [ > 33%] > tests/test_metadata.py ............. [ > 34%] > tests/test_middleware.py .. [ > 34%] > tests/test_model_serializer.py ................sss...................... [ > 37%] > ............... [ > 38%] > tests/test_multitable_inheritance.py ... [ > 38%] > tests/test_negotiation.py ........... [ > 39%] > tests/test_one_to_one_with_inheritance.py . [ > 39%] > tests/test_pagination.py ............................................... [ > 42%] > .. [ > 43%] > tests/test_parsers.py ............ [ > 43%] > tests/test_permissions.py .......................................... [ > 46%] > tests/test_prefetch_related.py .. [ > 47%] > tests/test_relations.py ....................................... [ > 49%] > tests/test_relations_hyperlink.py ...................... [ > 51%] > tests/test_relations_pk.py .................................... [ > 54%] > tests/test_relations_slug.py ............... [ > 55%] > tests/test_renderers.py ................................................ [ > 58%] > ...... [ > 58%] > tests/test_request.py ........................ [ > 60%] > tests/test_requests_client.py .......... [ > 61%] > tests/test_response.py .................. [ > 62%] > tests/test_reverse.py ... [ > 62%] > tests/test_routers.py ........................... [ > 64%] > tests/test_serializer.py ............................................... [ > 68%] > ..... [ > 68%] > tests/test_serializer_bulk_update.py ..... [ > 68%] > tests/test_serializer_lists.py .............................. [ > 70%] > tests/test_serializer_nested.py ................ss [ > 72%] > tests/test_settings.py .... [ > 72%] > tests/test_status.py . [ > 72%] > tests/test_templates.py .. [ > 72%] > tests/test_templatetags.py ........................... [ > 74%] > tests/test_testing.py .................... [ > 76%] > tests/test_throttling.py ............................. [ > 78%] > tests/test_urlpatterns.py ........... [ > 78%] > tests/test_utils.py ....................... [ > 80%] > tests/test_validation.py .............. [ > 81%] > tests/test_validation_error.py ..... [ > 81%] > tests/test_validators.py ...................................... [ > 84%] > tests/test_versioning.py .......................... [ > 86%] > tests/test_views.py ..... [ > 86%] > tests/test_viewsets.py ................. [ > 88%] > tests/test_write_only_fields.py .. [ > 88%] > tests/authentication/test_authentication.py ............................ [ > 90%] > .............................. [ > 92%] > tests/browsable_api/test_browsable_api.py ...... [ > 92%] > tests/browsable_api/test_browsable_nested_api.py . [ > 92%] > tests/browsable_api/test_form_rendering.py ... [ > 93%] > tests/generic_relations/test_generic_relations.py .. [ > 93%] > tests/importable/test_installed.py ... [ > 93%] > tests/schemas/test_coreapi.py ................................ [ > 95%] > tests/schemas/test_get_schema_view.py .. [ > 95%] > tests/schemas/test_managementcommand.py ........ [ > 96%] > tests/schemas/test_openapi.py .......................................... [ > 99%] > ........ > [100%] > > =================================== FAILURES > =================================== > __________________ TestViewNamesAndDescriptions.test_markdown > __________________ > tests/test_description.py:170: in test_markdown > assert apply_markdown(DESCRIPTION) == MARKDOWN_BASE % MARKDOWN_gte_33 > E AssertionError: assert '<h2 id="an-e...<p><br /></p>' == '<h2 > id="an-e...<p><br /></p>' > E Skipping 445 identical leading characters in diff, use -v to show > E - an class="nt">"beta: "</span><span class="err">this</span> > <span class="err">is</span> <span class="err">a</span> <span > class="err">string"</span><br /><span class="p">}]</span><br > /></pre></div> > E + an class="s2">"beta: "</span><span class="kc">t</span><span > class="err">his</span> <span class="err">is</span> <span class="err">a</span> > <span class="err">s</span><span class="kc">tr</span><span > class="err">i</span><span class="kc">n</span><span > class="err">g"</span><br /><span cl... > E > E ...Full output truncated (2 lines hidden), use '-vv' to show > =============================== warnings summary > =============================== > ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1183 > /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1183: > PytestDeprecationWarning: The --strict option is deprecated, use > --strict-markers instead. > self.issue_config_time_warning( > > ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233 > /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233: > PytestConfigWarning: Unknown config option: testspath > > self._warn_or_fail_if_strict(f"Unknown config option: {key}\n") > > tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps > /usr/lib/python3/dist-packages/django/db/models/base.py:321: > RuntimeWarning: Model 'authtoken.token' was already registered. Reloading > models is not advised as it can lead to inconsistencies, most notably with > related models. > new_class._meta.apps.register_model(new_class._meta.app_label, new_class) > > tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps > /usr/lib/python3/dist-packages/django/db/models/base.py:321: > RuntimeWarning: Model 'authtoken.tokenproxy' was already registered. > Reloading models is not advised as it can lead to inconsistencies, most > notably with related models. > new_class._meta.apps.register_model(new_class._meta.app_label, new_class) > > -- Docs: https://docs.pytest.org/en/stable/warnings.html > =========================== short test summary info > ============================ > SKIPPED [1] tests/test_model_serializer.py:445: condition: not postgres_fields > SKIPPED [1] tests/test_model_serializer.py:430: condition: not postgres_fields > SKIPPED [1] tests/test_model_serializer.py:462: has models.JSONField > SKIPPED [1] tests/test_serializer_nested.py:325: psycopg2 is not installed > SKIPPED [1] tests/test_serializer_nested.py:343: psycopg2 is not installed > FAILED tests/test_description.py::TestViewNamesAndDescriptions::test_markdown > ============ 1 failed, 1397 passed, 5 skipped, 4 warnings in 10.51s > ============ > E: pybuild pybuild:355: test: plugin custom failed with: exit code=1: > python3.10 /<<PKGBUILDDIR>>/runtests.py --nolint > I: pybuild base:237: python3.9 /<<PKGBUILDDIR>>/runtests.py --nolint > ============================= test session starts > ============================== > platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 > rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg > plugins: django-3.5.1, cov-3.0.0 > collected 1403 items > > tests/test_api_client.py .................... [ > 1%] > tests/test_atomic_requests.py ..... [ > 1%] > tests/test_authtoken.py ........... [ > 2%] > tests/test_bound_fields.py ........... [ > 3%] > tests/test_decorators.py .................. [ > 4%] > tests/test_description.py F.......... [ > 5%] > tests/test_encoders.py .......... [ > 6%] > tests/test_exceptions.py .......... [ > 6%] > tests/test_fields.py ................................................... [ > 10%] > ........................................................................ [ > 15%] > ........................................................................ [ > 20%] > ........................................................................ [ > 25%] > .......................... [ > 27%] > tests/test_filters.py ................................. [ > 30%] > tests/test_generics.py ....................................... [ > 32%] > tests/test_htmlrenderer.py ........ [ > 33%] > tests/test_lazy_hyperlinks.py . [ > 33%] > tests/test_metadata.py ............. [ > 34%] > tests/test_middleware.py .. [ > 34%] > tests/test_model_serializer.py ................sss...................... [ > 37%] > ............... [ > 38%] > tests/test_multitable_inheritance.py ... [ > 38%] > tests/test_negotiation.py ........... [ > 39%] > tests/test_one_to_one_with_inheritance.py . [ > 39%] > tests/test_pagination.py ............................................... [ > 42%] > .. [ > 43%] > tests/test_parsers.py ............ [ > 43%] > tests/test_permissions.py .......................................... [ > 46%] > tests/test_prefetch_related.py .. [ > 47%] > tests/test_relations.py ....................................... [ > 49%] > tests/test_relations_hyperlink.py ...................... [ > 51%] > tests/test_relations_pk.py .................................... [ > 54%] > tests/test_relations_slug.py ............... [ > 55%] > tests/test_renderers.py ................................................ [ > 58%] > ...... [ > 58%] > tests/test_request.py ........................ [ > 60%] > tests/test_requests_client.py .......... [ > 61%] > tests/test_response.py .................. [ > 62%] > tests/test_reverse.py ... [ > 62%] > tests/test_routers.py ........................... [ > 64%] > tests/test_serializer.py ............................................... [ > 68%] > ..... [ > 68%] > tests/test_serializer_bulk_update.py ..... [ > 68%] > tests/test_serializer_lists.py .............................. [ > 70%] > tests/test_serializer_nested.py ................ss [ > 72%] > tests/test_settings.py .... [ > 72%] > tests/test_status.py . [ > 72%] > tests/test_templates.py .. [ > 72%] > tests/test_templatetags.py ........................... [ > 74%] > tests/test_testing.py .................... [ > 76%] > tests/test_throttling.py ............................. [ > 78%] > tests/test_urlpatterns.py ........... [ > 78%] > tests/test_utils.py ....................... [ > 80%] > tests/test_validation.py .............. [ > 81%] > tests/test_validation_error.py ..... [ > 81%] > tests/test_validators.py ...................................... [ > 84%] > tests/test_versioning.py .......................... [ > 86%] > tests/test_views.py ..... [ > 86%] > tests/test_viewsets.py ................. [ > 88%] > tests/test_write_only_fields.py .. [ > 88%] > tests/authentication/test_authentication.py ............................ [ > 90%] > .............................. [ > 92%] > tests/browsable_api/test_browsable_api.py ...... [ > 92%] > tests/browsable_api/test_browsable_nested_api.py . [ > 92%] > tests/browsable_api/test_form_rendering.py ... [ > 93%] > tests/generic_relations/test_generic_relations.py .. [ > 93%] > tests/importable/test_installed.py ... [ > 93%] > tests/schemas/test_coreapi.py ................................ [ > 95%] > tests/schemas/test_get_schema_view.py .. [ > 95%] > tests/schemas/test_managementcommand.py ........ [ > 96%] > tests/schemas/test_openapi.py .......................................... [ > 99%] > ........ > [100%] > > =================================== FAILURES > =================================== > __________________ TestViewNamesAndDescriptions.test_markdown > __________________ > tests/test_description.py:170: in test_markdown > assert apply_markdown(DESCRIPTION) == MARKDOWN_BASE % MARKDOWN_gte_33 > E AssertionError: assert '<h2 id="an-e...<p><br /></p>' == '<h2 > id="an-e...<p><br /></p>' > E Skipping 445 identical leading characters in diff, use -v to show > E - an class="nt">"beta: "</span><span class="err">this</span> > <span class="err">is</span> <span class="err">a</span> <span > class="err">string"</span><br /><span class="p">}]</span><br > /></pre></div> > E + an class="s2">"beta: "</span><span class="kc">t</span><span > class="err">his</span> <span class="err">is</span> <span class="err">a</span> > <span class="err">s</span><span class="kc">tr</span><span > class="err">i</span><span class="kc">n</span><span > class="err">g"</span><br /><span cl... > E > E ...Full output truncated (2 lines hidden), use '-vv' to show > =============================== warnings summary > =============================== > ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1183 > /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1183: > PytestDeprecationWarning: The --strict option is deprecated, use > --strict-markers instead. > self.issue_config_time_warning( > > ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233 > /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233: > PytestConfigWarning: Unknown config option: testspath > > self._warn_or_fail_if_strict(f"Unknown config option: {key}\n") > > tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps > /usr/lib/python3/dist-packages/django/db/models/base.py:321: > RuntimeWarning: Model 'authtoken.token' was already registered. Reloading > models is not advised as it can lead to inconsistencies, most notably with > related models. > new_class._meta.apps.register_model(new_class._meta.app_label, new_class) > > tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps > /usr/lib/python3/dist-packages/django/db/models/base.py:321: > RuntimeWarning: Model 'authtoken.tokenproxy' was already registered. > Reloading models is not advised as it can lead to inconsistencies, most > notably with related models. > new_class._meta.apps.register_model(new_class._meta.app_label, new_class) > > -- Docs: https://docs.pytest.org/en/stable/warnings.html > =========================== short test summary info > ============================ > SKIPPED [1] tests/test_model_serializer.py:445: condition: not postgres_fields > SKIPPED [1] tests/test_model_serializer.py:430: condition: not postgres_fields > SKIPPED [1] tests/test_model_serializer.py:462: has models.JSONField > SKIPPED [1] tests/test_serializer_nested.py:325: psycopg2 is not installed > SKIPPED [1] tests/test_serializer_nested.py:343: psycopg2 is not installed > FAILED tests/test_description.py::TestViewNamesAndDescriptions::test_markdown > ============ 1 failed, 1397 passed, 5 skipped, 4 warnings in 10.53s > ============ > E: pybuild pybuild:355: test: plugin custom failed with: exit code=1: > python3.9 /<<PKGBUILDDIR>>/runtests.py --nolint > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 > 3.9" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2021/12/20/djangorestframework_3.12.4-1_unstable.log 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 marking 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.