Commit f85070de authored by Denis Bilenko's avatar Denis Bilenko

greentest.py: add assert_no_stderr()

parent 75183f50
......@@ -120,6 +120,10 @@ class TestCase(unittest.TestCase):
self.stderr = value
return value
def assert_no_stderr(self):
stderr = self.unhook_stderr()
assert not stderr, 'Expected no stderr, got:\n__________\n%s\n^^^^^^^^^^\n\n' % (stderr, )
def assert_stderr_traceback(self, typ, value=None):
if VERBOSE:
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment