summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-02 13:02:55 +0100
committerGeorg Brandl <georg@python.org>2016-02-02 13:02:55 +0100
commit6c753f04c5373e89bada7548d4667811d15ddea1 (patch)
treec4a291caf311a2d2b17bffcee576d426a36d1ad5
parent1796e45b8a13444664389e3fe86aab520b4ebecf (diff)
downloadpygments-6c753f04c5373e89bada7548d4667811d15ddea1.tar.gz
Fixup tests for HTML formatter change.
-rw-r--r--tests/test_html_formatter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_html_formatter.py b/tests/test_html_formatter.py
index 567de51f..596d9fbc 100644
--- a/tests/test_html_formatter.py
+++ b/tests/test_html_formatter.py
@@ -116,7 +116,7 @@ class HtmlFormatterTest(unittest.TestCase):
fmt = HtmlFormatter(**optdict)
fmt.format(tokensource, outfile)
html = outfile.getvalue()
- self.assertTrue(re.search("<pre><a name=\"foo-1\">", html))
+ self.assertTrue(re.search("<pre><span></span><a name=\"foo-1\">", html))
def test_lineanchors_with_startnum(self):
optdict = dict(lineanchors="foo", linenostart=5)
@@ -124,7 +124,7 @@ class HtmlFormatterTest(unittest.TestCase):
fmt = HtmlFormatter(**optdict)
fmt.format(tokensource, outfile)
html = outfile.getvalue()
- self.assertTrue(re.search("<pre><a name=\"foo-5\">", html))
+ self.assertTrue(re.search("<pre><span></span><a name=\"foo-5\">", html))
def test_valid_output(self):
# test all available wrappers