(self)
| 228 | self.fail("No exception raised") |
| 229 | |
| 230 | def test_accepts_traceback(self): |
| 231 | tb = get_tb() |
| 232 | try: |
| 233 | raise IndexError().with_traceback(tb) |
| 234 | except IndexError as e: |
| 235 | self.assertNotEqual(e.__traceback__, tb) |
| 236 | self.assertEqual(e.__traceback__.tb_next, tb) |
| 237 | else: |
| 238 | self.fail("No exception raised") |
| 239 | |
| 240 | |
| 241 | class TestTracebackType(unittest.TestCase): |
nothing calls this directly
no test coverage detected