Commit bbf94c96 authored by Denis Bilenko's avatar Denis Bilenko

greentest: make assert_stderr_traceback accept class as a first argument

parent 64d4a8fc
......@@ -131,6 +131,8 @@ class TestCase(unittest.TestCase):
if value is None:
value = str(typ)
typ = typ.__class__.__name__
else:
typ = getattr(typ, '__name__', typ)
stderr = self.unhook_stderr()
assert stderr is not None, repr(stderr)
traceback_re = '^Traceback \\(most recent call last\\):\n( +.*?\n)+^(?P<type>\w+): (?P<value>.*?)$'
......
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