xfailing test for captire encoding issues with binary stdio
This commit is contained in:
parent
cccfaa81fb
commit
c142f2551d
|
@ -493,3 +493,26 @@ def test_capture_early_option_parsing(testdir):
|
|||
result = testdir.runpytest("-vs")
|
||||
assert result.ret == 0
|
||||
assert 'hello19' in result.stdout.str()
|
||||
|
||||
@pytest.mark.xfail(sys.version_info >= (3, 0), reason='encoding issues')
|
||||
def test_capture_binary_output(testdir):
|
||||
testdir.makepyfile("""
|
||||
import pytest
|
||||
|
||||
def test_a():
|
||||
import sys
|
||||
import subprocess
|
||||
subprocess.call([sys.executable, __file__])
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_foo():
|
||||
import os;os.write(1, b'\xc3')
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_foo()
|
||||
""")
|
||||
result = testdir.runpytest('--assert=plain')
|
||||
result.stdout.fnmatch_lines([
|
||||
'*2 passed*',
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in New Issue