Commit faa4cc45 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[3095] Assert that the traceback file was generated first

parent 4cfee008
...@@ -80,6 +80,7 @@ class TracebackHandlerTest(unittest.TestCase): ...@@ -80,6 +80,7 @@ class TracebackHandlerTest(unittest.TestCase):
def fatal(self, message, ename, exception, filename): def fatal(self, message, ename, exception, filename):
obj.assertTrue(isinstance(exception, Exception)) obj.assertTrue(isinstance(exception, Exception))
obj.assertEqual('Exception', ename) obj.assertEqual('Exception', ename)
with open(filename) as f: with open(filename) as f:
text = text =
obj.assertTrue(text.startswith('Traceback')) obj.assertTrue(text.startswith('Traceback'))
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