(self)
| 540 | self.assertEqual(output.getvalue(), "Exception: projector\n") |
| 541 | |
| 542 | def test_print_exception_exc(self): |
| 543 | output = StringIO() |
| 544 | traceback.print_exception(Exception("projector"), file=output) |
| 545 | self.assertEqual(output.getvalue(), "Exception: projector\n") |
| 546 | |
| 547 | def test_print_last(self): |
| 548 | with support.swap_attr(sys, 'last_exc', ValueError(42)): |
nothing calls this directly
no test coverage detected