  import sys
  
  import pytest
  from django.test import TestCase
  
  from rest_framework.compat import apply_markdown
  from rest_framework.utils.formatting import dedent
 
</s> remove         # 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
        else:
            assert apply_markdown(DESCRIPTION) == MARKDOWN_BASE % MARKDOWN_lt_33
 </s> add         assert apply_markdown(DESCRIPTION) == MARKDOWN_DOCSTRING
 </s> remove <h2 id="hash-style-header">hash style header</h2>%s"""

MARKDOWN_gte_33 = """
<div class="highlight"><pre><span></span><span class="p">[{</span><br />\
    <span class="nt">&quot;alpha&quot;</span><span class="p">:</span>\
 <span class="mi">1</span><span class="p">,</span><br />\
    <span class="nt">&quot;beta&quot;</span><span class="p">:</span>\
 <span class="s2">&quot;this is a string&quot;</span><br />\
<span class="p">}]</span><br /></pre></div>
<p><br /></p>"""

MARKDOWN_lt_33 = """
<div class="highlight"><pre><span></span><span class="p">[{</span><br />\
    <span class="nt">&quot;alpha&quot;</span><span class="p">:</span>\
 <span class="mi">1</span><span class="p">,</span><br />\
    <span class="nt">&quot;beta&quot;</span><span class="p">:</span>\
 <span class="s2">&quot;this is a string&quot;</span><br />\
<span class="p">}]</span><br /></pre></div>

 </s> add <h2 id="hash-style-header">hash style header</h2>
<div class="highlight"><pre><span></span><span class="p">[{</span><span class="w"></span><br /><span class="w">    </span><span class="nt">&quot;alpha&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"></span><br /><span class="w">    </span><span class="nt">&quot;beta&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;this is a string&quot;</span><span class="w"></span><br /><span class="p">}]</span><span class="w"></span><br /></pre></div>
 </s> remove MARKDOWN_BASE = """<h2 id="an-example-docstring">an example docstring</h2>
 </s> add MARKDOWN_DOCSTRING = """<h2 id="an-example-docstring">an example docstring</h2>
 </s> remove pygments>=2.7.1,<2.8
 </s> add pygments==2.12 </s> remove markdown==3.3;python_version>="3.6"
markdown==3.2.2;python_version=="3.5"
 </s> add markdown==3.3


  import pytest
  from django.test import TestCase
  
  from rest_framework.compat import apply_markdown
  from rest_framework.utils.formatting import dedent
replace replace keep keep keep keep keep
 Update docstring test for more recent pygments version (#8530)

* Update docstring test for more recent pygments version

* Drop unused import 
tests/test_description.py