summaryrefslogtreecommitdiff
path: root/unittest_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'unittest_utils.py')
-rw-r--r--unittest_utils.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/unittest_utils.py b/unittest_utils.py
index 5987da6..2dc8cfe 100644
--- a/unittest_utils.py
+++ b/unittest_utils.py
@@ -1,9 +1,10 @@
#!/usr/bin/env python3
"""Helpers for unittests. Note that when you import this we
-automatically wrap unittest.main() with a call to bootstrap.initialize
-so that we getLogger config, commandline args, logging control,
-etc... this works fine but it's a little hacky so caveat emptor.
+ automatically wrap unittest.main() with a call to
+ bootstrap.initialize so that we getLogger config, commandline args,
+ logging control, etc... this works fine but it's a little hacky so
+ caveat emptor.
"""
import contextlib
@@ -170,7 +171,7 @@ class RecordStdout(object):
def __exit__(self, *args) -> bool:
self.recorder.__exit__(*args)
self.destination.seek(0)
- return True
+ return None
class RecordStderr(object):
@@ -192,7 +193,7 @@ class RecordStderr(object):
def __exit__(self, *args) -> bool:
self.recorder.__exit__(*args)
self.destination.seek(0)
- return True
+ return None
class RecordMultipleStreams(object):