diff options
| author | Scott Gasch <[email protected]> | 2021-07-28 22:13:43 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-07-28 22:13:43 -0700 |
| commit | 4faa994d32223c8d560d9dad0ca90a3f7eb10d6a (patch) | |
| tree | 1200e5615d94247a120b98a4ddceb2cd6674e0af /unittest_utils.py | |
| parent | c79ecbf708a63a54a9c3e8d189b65d4794930082 (diff) | |
Money, Rate, CentCount and a bunch of bugfixes.
Diffstat (limited to 'unittest_utils.py')
| -rw-r--r-- | unittest_utils.py | 11 |
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): |
