diff options
| author | Georg Brandl <georg@python.org> | 2009-04-07 21:50:14 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-04-07 21:50:14 +0200 |
| commit | 6097e13027dc65b6cbcdc00c47dbe59eb26f587e (patch) | |
| tree | 0b077994991b2beb189244b76244f12dd25e9b66 | |
| parent | dae72fa43ec93c7b9c7713bde6b88522cee97669 (diff) | |
| download | sphinx-6097e13027dc65b6cbcdc00c47dbe59eb26f587e.tar.gz | |
Fix test suite failures when Pygments is not available.
| -rw-r--r-- | tests/test_build.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index 7b33dc09..1901cf10 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -71,8 +71,6 @@ HTML_XPATH = { ".//img[@src='../_images/rimg.png']": '', }, 'subdir/includes.html': { - ".//pre/span": 'line 1', - ".//pre/span": 'line 2', ".//a[@href='../_downloads/img.png']": '', }, 'includes.html': { @@ -132,6 +130,10 @@ if pygments: ".//div[@class='inc-startend highlight-text']/div/pre": ur'^foo = u"Including Unicode characters: üöä"\n$', }) + HTML_XPATH['subdir/includes.html'].update({ + ".//pre/span": 'line 1', + ".//pre/span": 'line 2', + }) class NslessParser(ET.XMLParser): """XMLParser that throws away namespaces in tag names.""" |
