Fixed markdown test (#7892)

The pygments rendering of invalid json changed in  pygments>=2.7.3
This commit is contained in:
David Smith 2021-04-01 09:49:47 +01:00 committed by GitHub
parent 0323d6f895
commit 96885dd9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ indented
``` json ``` json
[{ [{
"alpha": 1, "alpha": 1,
"beta: "this is a string" "beta": "this is a string"
}] }]
```""" ```"""
@ -48,20 +48,18 @@ MARKDOWN_gte_33 = """
<div class="highlight"><pre><span></span><span class="p">[{</span><br />\ <div class="highlight"><pre><span></span><span class="p">[{</span><br />\
<span class="nt">&quot;alpha&quot;</span><span class="p">:</span>\ <span class="nt">&quot;alpha&quot;</span><span class="p">:</span>\
<span class="mi">1</span><span class="p">,</span><br />\ <span class="mi">1</span><span class="p">,</span><br />\
<span class="nt">&quot;beta: &quot;</span><span class="err">this\ <span class="nt">&quot;beta&quot;</span><span class="p">:</span>\
</span> <span class="err">is</span> <span class="err">a</span> \ <span class="s2">&quot;this is a string&quot;</span><br />\
<span class="err">string&quot;</span><br /><span class="p">}]</span>\ <span class="p">}]</span><br /></pre></div>
<br /></pre></div>
<p><br /></p>""" <p><br /></p>"""
MARKDOWN_lt_33 = """ MARKDOWN_lt_33 = """
<div class="highlight"><pre><span></span><span class="p">[{</span><br />\ <div class="highlight"><pre><span></span><span class="p">[{</span><br />\
<span class="nt">&quot;alpha&quot;</span><span class="p">:</span>\ <span class="nt">&quot;alpha&quot;</span><span class="p">:</span>\
<span class="mi">1</span><span class="p">,</span><br />\ <span class="mi">1</span><span class="p">,</span><br />\
<span class="nt">&quot;beta: &quot;</span><span class="err">this\ <span class="nt">&quot;beta&quot;</span><span class="p">:</span>\
</span> <span class="err">is</span> <span class="err">a</span>\ <span class="s2">&quot;this is a string&quot;</span><br />\
<span class="err">string&quot;</span><br /><span class="p">}]</span>\ <span class="p">}]</span><br /></pre></div>
<br /></pre></div>
<p><br /></p>""" <p><br /></p>"""
@ -112,7 +110,7 @@ class TestViewNamesAndDescriptions(TestCase):
``` json ``` json
[{ [{
"alpha": 1, "alpha": 1,
"beta: "this is a string" "beta": "this is a string"
}] }]
```""" ```"""