[svn r37949] fix test for nocapturing output runs (and --pdb)
--HG-- branch : trunk
This commit is contained in:
parent
99661844dd
commit
03dc73b195
|
@ -123,6 +123,8 @@ class TestStdCaptureFD(TestStdCapture):
|
||||||
assert err.startswith("4")
|
assert err.startswith("4")
|
||||||
|
|
||||||
def test_capture_no_sys():
|
def test_capture_no_sys():
|
||||||
|
capsys = py.io.StdCapture()
|
||||||
|
try:
|
||||||
cap = py.io.StdCaptureFD(patchsys=False)
|
cap = py.io.StdCaptureFD(patchsys=False)
|
||||||
print >>sys.stdout, "hello"
|
print >>sys.stdout, "hello"
|
||||||
print >>sys.stderr, "world"
|
print >>sys.stderr, "world"
|
||||||
|
@ -131,6 +133,8 @@ def test_capture_no_sys():
|
||||||
out, err = cap.reset()
|
out, err = cap.reset()
|
||||||
assert out == "1"
|
assert out == "1"
|
||||||
assert err == "2"
|
assert err == "2"
|
||||||
|
finally:
|
||||||
|
capsys.reset()
|
||||||
|
|
||||||
def test_callcapture_nofd():
|
def test_callcapture_nofd():
|
||||||
def func(x, y):
|
def func(x, y):
|
||||||
|
|
Loading…
Reference in New Issue