[svn r37745] fixing and adding to docstring
--HG-- branch : trunk
This commit is contained in:
parent
c413f11daf
commit
3ad6642a49
|
@ -52,8 +52,8 @@ class StdCaptureFD(Capture):
|
||||||
class StdCapture(Capture):
|
class StdCapture(Capture):
|
||||||
""" capture sys.stdout/sys.stderr (but not system level fd 1 and 2).
|
""" capture sys.stdout/sys.stderr (but not system level fd 1 and 2).
|
||||||
|
|
||||||
this captures only "In-Memory" and is currently intended to be
|
This class allows to capture writes to sys.stdout|stderr "in-memory"
|
||||||
used by the unittest package to capture print-statements in tests.
|
and will raise errors on tries to read from sys.stdin.
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.oldin = sys.stdin
|
self.oldin = sys.stdin
|
||||||
|
|
Loading…
Reference in New Issue