From c2cd239d35c8f3a1be3f86ea1dc5f83ea8431fd6 Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Mon, 11 Dec 2017 23:24:47 +0530 Subject: [PATCH] remove _ast reference from test cases as well --- testing/code/test_source.py | 7 ++----- 1 file 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')")