[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1005779: djangorestframework: autopkgtest needs update for new version of pygments

Source: djangorestframework
Version: 3.12.4-2
Severity: serious
X-Debbugs-CC: debian-ci@lists.debian.org, pygments@packages.debian.org
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
Control: affects -1 src:pygments

Dear maintainer(s),

With a (not so) recent upload of pygments the autopkgtest of djangorestframework fails in testing when that autopkgtest is run with the binary packages of pygments from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
pygments               from testing    2.10.0+dfsg-1
djangorestframework    from testing    3.12.4-2
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 pygments to testing [1]. Of course, pygments shouldn't just break your autopkgtest (or even worse, your package), but it seems to me that the change in pygments was intended and your package needs to update to the new situation.

If this is a real problem in your package (and not only in your autopkgtest), the right binary package(s) from pygments should really add a versioned Breaks on the unfixed version of (one of your) package(s). Note: the Breaks is nice even if the issue is only in the autopkgtest as it helps the migration software to figure out the right versions to combine in the tests.

More information about this bug and the reason for filing it can be found on


[1] https://qa.debian.org/excuses.php?package=pygments


=================================== 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">&quot;beta: &quot;</span><span class="err">this</span> <span class="err">is</span> <span class="err">a</span> <span class="err">string&quot;</span><br /><span class="p">}]</span><br /></pre></div> E + an class="s2">&quot;beta: &quot;</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&quot;</span><br /><span cl... E E ...Full output truncated (2 lines hidden), use '-vv' to show

tests/test_description.py:170: AssertionError

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply to: