remove unsupported python versions from code/source xfail
This commit is contained in:
parent
2a43237527
commit
1451a1ab00
|
@ -385,8 +385,7 @@ def test_deindent():
|
||||||
lines = deindent(source.splitlines())
|
lines = deindent(source.splitlines())
|
||||||
assert lines == ['', 'def f():', ' def g():', ' pass', ' ']
|
assert lines == ['', 'def f():', ' def g():', ' pass', ' ']
|
||||||
|
|
||||||
@pytest.mark.xfail("sys.version_info[:3] < (2,7,0) or "
|
@pytest.mark.xfail("sys.version_info[:3] < (2,7,0)")
|
||||||
"((3,0) <= sys.version_info[:2] < (3,2))")
|
|
||||||
def test_source_of_class_at_eof_without_newline(tmpdir):
|
def test_source_of_class_at_eof_without_newline(tmpdir):
|
||||||
# this test fails because the implicit inspect.getsource(A) below
|
# this test fails because the implicit inspect.getsource(A) below
|
||||||
# does not return the "x = 1" last line.
|
# does not return the "x = 1" last line.
|
||||||
|
@ -656,4 +655,3 @@ something
|
||||||
'''"""
|
'''"""
|
||||||
result = getstatement(1, source)
|
result = getstatement(1, source)
|
||||||
assert str(result) == "'''\n'''"
|
assert str(result) == "'''\n'''"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue