Public bug reported: Upstream is aware of the problem (tho, the proposed fix does not resolve the issue quite yet): https://github.com/encode/django-rest-framework/issues/8160
=================================== FAILURES =================================== __________________ TestViewNamesAndDescriptions.test_markdown __________________ self = <tests.test_description.TestViewNamesAndDescriptions testMethod=test_markdown> @pytest.mark.skipif(not apply_markdown, reason="Markdown is not installed") def test_markdown(self): """ Ensure markdown to HTML works as expected. """ # Markdown 3.3 is only supported on Python 3.6 and higher if sys.version_info >= (3, 6): > 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 tests/test_description.py:170: AssertionError =============================== warnings summary =============================== 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:316: 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:316: 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 ============================ FAILED tests/test_description.py::TestViewNamesAndDescriptions::test_markdown =========== 1 failed, 1275 passed, 127 skipped, 2 warnings in 15.83s =========== ** Affects: djangorestframework (Ubuntu) Importance: Undecided Status: New ** Affects: pygments (Ubuntu) Importance: Undecided Status: New ** Tags: update-excuse ** Also affects: pygments (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1955134 Title: test_markdown fails rendering with pygments > 2.10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/djangorestframework/+bug/1955134/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs