summaryrefslogtreecommitdiff
path: root/testing/code
diff options
context:
space:
mode:
authorSrinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>2017-12-11 23:24:47 +0530
committerSrinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>2017-12-11 23:24:47 +0530
commitc2cd239d35c8f3a1be3f86ea1dc5f83ea8431fd6 (patch)
treeb50d88b7b8043e9d204ccf2bfaa52889ebd1b0ba /testing/code
parentcb0ba18f5381ba60a4693a71f3c1c1470631ec60 (diff)
downloadpytest-c2cd239d35c8f3a1be3f86ea1dc5f83ea8431fd6.tar.gz
remove _ast reference from test cases as well
Diffstat (limited to 'testing/code')
-rw-r--r--testing/code/test_source.py7
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')")