Skip to content

Commit 1451a1a

Browse files
remove unsupported python versions from code/source xfail
1 parent 2a43237 commit 1451a1a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

testing/code/test_source.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,7 @@ def g():
385385
lines = deindent(source.splitlines())
386386
assert lines == ['', 'def f():', ' def g():', ' pass', ' ']
387387

388-
@pytest.mark.xfail("sys.version_info[:3] < (2,7,0) or "
389-
"((3,0) <= sys.version_info[:2] < (3,2))")
388+
@pytest.mark.xfail("sys.version_info[:3] < (2,7,0)")
390389
def test_source_of_class_at_eof_without_newline(tmpdir):
391390
# this test fails because the implicit inspect.getsource(A) below
392391
# does not return the "x = 1" last line.
@@ -656,4 +655,3 @@ def XXX_test_expression_multiline():
656655
'''"""
657656
result = getstatement(1, source)
658657
assert str(result) == "'''\n'''"
659-

0 commit comments

Comments
 (0)