1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/abb19eb7123a/
Changeset:   abb19eb7123a
User:        hpk42
Date:        2014-04-02 20:29:10
Summary:     add a test for robustness of capturing when a test closes FD1/2
Affected #:  1 file

diff -r 443d4791a41f40bbac4e5355c6c4a395b9fb2864 -r 
abb19eb7123acf5673798b34e47248807fc82019 testing/test_capture.py
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -1010,3 +1010,21 @@
         WARNING:root:hello2
     """)
     assert "atexit" not in result.stderr.str()
+
+def test_close_and_capture_again(testdir):
+    testdir.makepyfile("""
+        import os
+        def test_close():
+            os.close(1)
+        def test_capture_again():
+            os.write(1, "hello\\n")
+            assert 0
+    """)
+    result = testdir.runpytest()
+    result.stdout.fnmatch_lines("""
+        *test_capture_again*
+        *assert 0*
+        *stdout*
+        *hello*
+    """)
+

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

Reply via email to