#!/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
def __exit__(self, *args) -> bool:
self.recorder.__exit__(*args)
self.destination.seek(0)
- return True
+ return None
class RecordStderr(object):
def __exit__(self, *args) -> bool:
self.recorder.__exit__(*args)
self.destination.seek(0)
- return True
+ return None
class RecordMultipleStreams(object):