summaryrefslogtreecommitdiff
path: root/tests/test_build_html.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-27 19:07:51 +0200
committerGeorg Brandl <georg@python.org>2010-07-27 19:07:51 +0200
commitb815c4d7b67107c1ddd5f14b6365fa01cc83b940 (patch)
treebde3b3456a4272ab47b6a37b662786871422c971 /tests/test_build_html.py
parent57a73c75b412c6d0bd38acfe228598f66c34ab06 (diff)
downloadsphinx-b815c4d7b67107c1ddd5f14b6365fa01cc83b940.tar.gz
Now that the expected warnings are regexes, diffing them with the actual output makes no sense anymore.
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r--tests/test_build_html.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index 41ebf055..5f4dea0f 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -11,7 +11,6 @@
import os
import re
-import difflib
import htmlentitydefs
from StringIO import StringIO
@@ -285,8 +284,8 @@ def test_html(app):
html_warnings_exp = HTML_WARNINGS % {'root': re.escape(app.srcdir)}
assert re.match(html_warnings_exp + '$', html_warnings), \
'Warnings don\'t match:\n' + \
- '\n'.join(difflib.ndiff(html_warnings_exp.splitlines(),
- html_warnings.splitlines()))
+ '--- Expected (regex):\n' + html_warnings_exp + \
+ '--- Got:\n' + html_warnings
for fname, paths in HTML_XPATH.iteritems():
parser = NslessParser()