Merge pull request #2754 from nicoddemus/xfail_strict
Set xfail_strict=True in pytest's own test suite
This commit is contained in:
commit
70cdfaf661
|
@ -0,0 +1 @@
|
||||||
|
Set ``xfail_strict=True`` in pytest's own test suite to catch expected failures as soon as they start to pass.
|
|
@ -391,7 +391,6 @@ def test_deindent():
|
||||||
assert lines == ['', 'def f():', ' def g():', ' pass', ' ']
|
assert lines == ['', 'def f():', ' def g():', ' pass', ' ']
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail("sys.version_info[:3] < (2,7,0)")
|
|
||||||
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.
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -200,6 +200,7 @@ python_files = test_*.py *_test.py testing/*/*.py
|
||||||
python_classes = Test Acceptance
|
python_classes = Test Acceptance
|
||||||
python_functions = test
|
python_functions = test
|
||||||
norecursedirs = .tox ja .hg cx_freeze_source
|
norecursedirs = .tox ja .hg cx_freeze_source
|
||||||
|
xfail_strict=true
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
error
|
error
|
||||||
# produced by path.local
|
# produced by path.local
|
||||||
|
|
Loading…
Reference in New Issue