diff options
| author | Gael Pasgrimaud <gael@gawel.org> | 2013-01-29 13:51:12 +0100 |
|---|---|---|
| committer | Gael Pasgrimaud <gael@gawel.org> | 2013-01-29 13:51:12 +0100 |
| commit | 9a5f8dcfee6a76208bbf6cd38effc16c4d2b137f (patch) | |
| tree | a55f3d36b6e14344165cf0204e8287524655bd65 /docs | |
| parent | 9b7f30e3ee659ff618e72399d5da63b46b899d13 (diff) | |
| download | webtest-9a5f8dcfee6a76208bbf6cd38effc16c4d2b137f.tar.gz | |
skip one test in 2.6
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/webtest_fixt.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/webtest_fixt.py b/docs/webtest_fixt.py index 98f6ac8..39974ef 100644 --- a/docs/webtest_fixt.py +++ b/docs/webtest_fixt.py @@ -7,6 +7,7 @@ from webob import Request from webob import Response import json import six +import sys def application(environ, start_response): @@ -25,9 +26,14 @@ def application(environ, start_response): def setup_test(test): + ver = sys.version_info[:2] test.globs.update(app=TestApp(application)) for example in test.examples: - example.options[ELLIPSIS] = 1 - example.options[NORMALIZE_WHITESPACE] = 1 + if "'xml'" in example.want and ver == (2, 6): + # minidom node do not render the same in 2.6 + example.options[SKIP] = 1 + else: + example.options[ELLIPSIS] = 1 + example.options[NORMALIZE_WHITESPACE] = 1 setup_test.__test__ = False |
