1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/ed53fc170092/
Changeset: ed53fc170092
User: RonnyPfannschmidt
Date: 2014-01-22 18:07:54
Summary: xfailing test for captire encoding issues with binary stdio
Affected #: 1 file
diff -r 0761626cf9a54ad7b68e802808d77448c9919bc6 -r
ed53fc170092dd91959751cf85b63c6ffe0fc3b7 testing/test_capture.py
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -493,3 +493,26 @@
result = testdir.runpytest("-vs")
assert result.ret == 0
assert 'hello19' in result.stdout.str()
+
[email protected](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*',
+ ])
+
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit