1 new commit in pytest: https://bitbucket.org/hpk42/pytest/commits/b5fcd2bfc60e/ Changeset: b5fcd2bfc60e User: RonnyPfannschmidt Date: 2014-03-27 13:53:59 Summary: xfailing test for issue 412 Affected #: 2 files
diff -r 3159114182b260a16ebfa298a3c878ab4cda3cd4 -r b5fcd2bfc60ef300e7c8ceef12d97f76a61f7e3a .hgignore --- a/.hgignore +++ b/.hgignore @@ -9,6 +9,7 @@ bin/ include/ .Python/ +.env/ # These lines are suggested according to the svn:ignore property # Feel free to enable them by uncommenting them @@ -27,6 +28,7 @@ *.egg-info issue/ env/ +env3/ 3rdparty/ .tox .cache diff -r 3159114182b260a16ebfa298a3c878ab4cda3cd4 -r b5fcd2bfc60ef300e7c8ceef12d97f76a61f7e3a testing/test_capture.py --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -533,6 +533,24 @@ 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): testdir.makeconftest(""" def pytest_runtest_setup(): 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 pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit