diff options
author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2017-12-11 23:24:47 +0530 |
---|---|---|
committer | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2017-12-11 23:24:47 +0530 |
commit | c2cd239d35c8f3a1be3f86ea1dc5f83ea8431fd6 (patch) | |
tree | b50d88b7b8043e9d204ccf2bfaa52889ebd1b0ba /testing/code | |
parent | cb0ba18f5381ba60a4693a71f3c1c1470631ec60 (diff) | |
download | pytest-c2cd239d35c8f3a1be3f86ea1dc5f83ea8431fd6.tar.gz |
remove _ast reference from test cases as well
Diffstat (limited to 'testing/code')
-rw-r--r-- | testing/code/test_source.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testing/code/test_source.py b/testing/code/test_source.py index 8eda68a6e..fcce3fa96 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -8,13 +8,10 @@ import _pytest._code import py import pytest from _pytest._code import Source -from _pytest._code.source import _ast +from _pytest._code.source import ast -if _ast is not None: - astonly = pytest.mark.nothing -else: - astonly = pytest.mark.xfail("True", reason="only works with AST-compile") +astonly = pytest.mark.nothing failsonjython = pytest.mark.xfail("sys.platform.startswith('java')") |