projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding test code trying to improve test coverage.
[python_utils.git]
/
unittest_utils.py
diff --git
a/unittest_utils.py
b/unittest_utils.py
index f4fed35f09fdf29970820bef8566652825327634..e84b4eb929cfb8ac37daf31811b675c9d9d7825e 100644
(file)
--- a/
unittest_utils.py
+++ b/
unittest_utils.py
@@
-275,6
+275,7
@@
class RecordStdout(object):
... print("This is a test!")
>>> print({record().readline()})
{'This is a test!\\n'}
... print("This is a test!")
>>> print({record().readline()})
{'This is a test!\\n'}
+ >>> record().close()
"""
def __init__(self) -> None:
"""
def __init__(self) -> None:
@@
-301,6
+302,7
@@
class RecordStderr(object):
... print("This is a test!", file=sys.stderr)
>>> print({record().readline()})
{'This is a test!\\n'}
... print("This is a test!", file=sys.stderr)
>>> print({record().readline()})
{'This is a test!\\n'}
+ >>> record().close()
"""
def __init__(self) -> None:
"""
def __init__(self) -> None: