From 1451a1ab002db532550277cb9e1981af5b35088f Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 30 Jun 2016 10:03:40 +0200 Subject: [PATCH] remove unsupported python versions from code/source xfail --- testing/code/test_source.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testing/code/test_source.py b/testing/code/test_source.py index 007ad1433..e78f4b241 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -385,8 +385,7 @@ def test_deindent(): lines = deindent(source.splitlines()) assert lines == ['', 'def f():', ' def g():', ' pass', ' '] -@pytest.mark.xfail("sys.version_info[:3] < (2,7,0) or " - "((3,0) <= sys.version_info[:2] < (3,2))") +@pytest.mark.xfail("sys.version_info[:3] < (2,7,0)") def test_source_of_class_at_eof_without_newline(tmpdir): # this test fails because the implicit inspect.getsource(A) below # does not return the "x = 1" last line. @@ -656,4 +655,3 @@ something '''""" result = getstatement(1, source) assert str(result) == "'''\n'''" -