(self)
| 533 | self.assertEqual(stderr.splitlines(), expected) |
| 534 | |
| 535 | def test_print_exception(self): |
| 536 | output = StringIO() |
| 537 | traceback.print_exception( |
| 538 | Exception, Exception("projector"), None, file=output |
| 539 | ) |
| 540 | self.assertEqual(output.getvalue(), "Exception: projector\n") |
| 541 | |
| 542 | def test_print_exception_exc(self): |
| 543 | output = StringIO() |
nothing calls this directly
no test coverage detected