Processed: Re: djangorestframework FTBFS with pytest 6
Add Reply
Debian Bug Tracking System
2021-01-13 22:30:01 UTC
tag -1 moreinfo
Bug #977061 [src:djangorestframework] djangorestframework FTBFS with pytest 6
Added tag(s) moreinfo.
severity -1 important
Bug #977061 [src:djangorestframework] djangorestframework FTBFS with pytest 6
Severity set to 'important' from 'serious'
977061: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977061
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Jonas Meurer
2021-01-13 22:30:02 UTC
Control: tag -1 moreinfo
Control: severity -1 important

Hey Christian,
djangorestframework FTBFS with pytest 6 in experimental.
I'm unable to reproduce the bug with pytest 6.0.2-2 from unstable. Also,
according to ci.debian.net, the unit tests pass on all suites:


Can you please provide further information on how to reproduce the bug?
Or maybe it was a temporary error that's been resolved in the meantime?

Anyway, I'm lowering the bug severity for now in order to prevent
djangorestframework from being removed from testing.

Kind regards
The error log below has more details.
=================================== FAILURES ===================================
__________________ TestViewNamesAndDescriptions.test_markdown __________________
tests/test_description.py:184: in test_markdown
assert gte_21_match or lt_21_match
E AssertionError: assert (False or False)
=============================== warnings summary ===============================
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:1148: PytestConfigWarning: Unknown config ini key: testspath
self._warn_or_fail_if_strict("Unknown config ini key: {}\n".format(key))
/<<PKGBUILDDIR>>/rest_framework/exceptions.py:77: DeprecationWarning: NotImplemented should not be used in a boolean context
return r and self.code == other.code
-- 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: condition: not postgres_fields
SKIPPED [1] tests/test_model_serializer.py:487: no 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, 1383 passed, 6 skipped, 3 warnings in 9.72s =============
E: pybuild pybuild:353: 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.9 returned exit code 13
make[1]: *** [debian/rules:31: override_dh_auto_test] Error 25
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'