diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ext.txt | 4 | ||||
| -rw-r--r-- | docs/index_fixt.py | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/ext.txt b/docs/ext.txt index f1efada..42c38ed 100644 --- a/docs/ext.txt +++ b/docs/ext.txt @@ -15,11 +15,11 @@ Using casperjs to run tests The js part: -.. literalinclude:: ../../tests/test_casperjs.js +.. literalinclude:: ../tests/test_casperjs.js :language: javascript The python part: -.. literalinclude:: ../../tests/test_casperjs.py +.. literalinclude:: ../tests/test_casperjs.py :pyobject: test_casperjs diff --git a/docs/index_fixt.py b/docs/index_fixt.py index b5b4c3f..8ec1c39 100644 --- a/docs/index_fixt.py +++ b/docs/index_fixt.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- -from doctest import ELLIPSIS +import doctest def setup_test(test): for example in test.examples: - example.options.setdefault(ELLIPSIS, 1) + example.options.setdefault(doctest.ELLIPSIS, 1) + example.options.setdefault(doctest.NORMALIZE_WHITESPACE, 1) setup_test.__test__ = False |
