xfailing test for issue 412
This commit is contained in:
parent
42e0d7970c
commit
b18040337a
|
@ -9,6 +9,7 @@ lib/
|
||||||
bin/
|
bin/
|
||||||
include/
|
include/
|
||||||
.Python/
|
.Python/
|
||||||
|
.env/
|
||||||
|
|
||||||
# These lines are suggested according to the svn:ignore property
|
# These lines are suggested according to the svn:ignore property
|
||||||
# Feel free to enable them by uncommenting them
|
# Feel free to enable them by uncommenting them
|
||||||
|
@ -27,6 +28,7 @@ dist/
|
||||||
*.egg-info
|
*.egg-info
|
||||||
issue/
|
issue/
|
||||||
env/
|
env/
|
||||||
|
env3/
|
||||||
3rdparty/
|
3rdparty/
|
||||||
.tox
|
.tox
|
||||||
.cache
|
.cache
|
||||||
|
|
|
@ -533,6 +533,24 @@ def test_capture_conftest_runtest_setup(testdir):
|
||||||
assert 'hello19' not in result.stdout.str()
|
assert 'hello19' not in result.stdout.str()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.xfail(reason='demonstrate #412')
|
||||||
|
def test_capture_badoutput(testdir):
|
||||||
|
testdir.makepyfile("""
|
||||||
|
import os
|
||||||
|
|
||||||
|
def test_func():
|
||||||
|
omg = bytearray([1,129,1])
|
||||||
|
os.write(1, omg)
|
||||||
|
assert 0
|
||||||
|
""")
|
||||||
|
result = testdir.runpytest('--cap=fd')
|
||||||
|
#this fails on python3 - fnmatch first for debugging
|
||||||
|
result.stdout.fnmatch_lines([
|
||||||
|
'*1 failed*',
|
||||||
|
])
|
||||||
|
assert result.ret == 1
|
||||||
|
|
||||||
|
|
||||||
def test_capture_early_option_parsing(testdir):
|
def test_capture_early_option_parsing(testdir):
|
||||||
testdir.makeconftest("""
|
testdir.makeconftest("""
|
||||||
def pytest_runtest_setup():
|
def pytest_runtest_setup():
|
||||||
|
|
Loading…
Reference in New Issue