summaryrefslogtreecommitdiff
path: root/testing/test_capture.py
diff options
context:
space:
mode:
authorvictor <victor.maryama@typhoon-hil.com>2018-08-19 15:26:57 +0200
committervictor <victor.maryama@typhoon-hil.com>2018-08-19 15:26:57 +0200
commit0564b52c0e1ecdce87b98f902091f3e06a01cc13 (patch)
tree19943a83812b1c84ebfaa10882a148d10f07f702 /testing/test_capture.py
parent8b2c91836b507727141b12b1f47c8d29ef744d1e (diff)
downloadpytest-0564b52c0e1ecdce87b98f902091f3e06a01cc13.tar.gz
Fixed integration with other modules/tests
Diffstat (limited to 'testing/test_capture.py')
-rw-r--r--testing/test_capture.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/testing/test_capture.py b/testing/test_capture.py
index b2185822a..626c4414a 100644
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -70,19 +70,23 @@ class TestCaptureManager(object):
try:
capman = CaptureManager(method)
capman.start_global_capturing()
- outerr = capman.suspend_global_capture()
+ capman.suspend_global_capture()
+ outerr = capman.snap_global_capture()
assert outerr == ("", "")
- outerr = capman.suspend_global_capture()
+ capman.suspend_global_capture()
+ outerr = capman.snap_global_capture()
assert outerr == ("", "")
print("hello")
- out, err = capman.suspend_global_capture()
+ capman.suspend_global_capture()
+ out, err = capman.snap_global_capture()
if method == "no":
assert old == (sys.stdout, sys.stderr, sys.stdin)
else:
assert not out
capman.resume_global_capture()
print("hello")
- out, err = capman.suspend_global_capture()
+ capman.suspend_global_capture()
+ out, err = capman.snap_global_capture()
if method != "no":
assert out == "hello\n"
capman.stop_global_capturing()