diff options
author | Gael Pasgrimaud <gael@gawel.org> | 2014-01-17 17:59:14 +0100 |
---|---|---|
committer | Gael Pasgrimaud <gael@gawel.org> | 2014-01-17 17:59:14 +0100 |
commit | 7ff93c23024478892a99381664142aa1599a5840 (patch) | |
tree | 4268fea6e6fb5ce88c338e3f938aed558761d80b | |
parent | 973e2be1ccc137f1da7bc1c0b648eea853eb8392 (diff) | |
download | webtest-7ff93c23024478892a99381664142aa1599a5840.tar.gz |
skip lxml/pyquery tests with pypy
-rw-r--r-- | docs/testresponse_fixt.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/testresponse_fixt.py b/docs/testresponse_fixt.py index 39974ef..66c373e 100644 --- a/docs/testresponse_fixt.py +++ b/docs/testresponse_fixt.py @@ -27,9 +27,16 @@ def application(environ, start_response): def setup_test(test): ver = sys.version_info[:2] + is_pypy = 'PyPy' in sys.version test.globs.update(app=TestApp(application)) for example in test.examples: - if "'xml'" in example.want and ver == (2, 6): + if "lxml" in example.source and is_pypy: + # minidom node do not render the same in 2.6 + example.options[SKIP] = 1 + elif "pyquery" in example.source and is_pypy: + # minidom node do not render the same in 2.6 + example.options[SKIP] = 1 + elif "'xml'" in example.want and ver == (2, 6): # minidom node do not render the same in 2.6 example.options[SKIP] = 1 else: |