(self)
| 3740 | self.assertEqual(sys.getrefcount(exc_obj.__traceback__), refcnt2) |
| 3741 | |
| 3742 | def test_comparison_basic(self): |
| 3743 | try: |
| 3744 | 1/0 |
| 3745 | except Exception as e: |
| 3746 | exc_obj = e |
| 3747 | exc = traceback.TracebackException.from_exception(exc_obj) |
| 3748 | exc2 = traceback.TracebackException.from_exception(exc_obj) |
| 3749 | self.assertIsNot(exc, exc2) |
| 3750 | self.assertEqual(exc, exc2) |
| 3751 | self.assertNotEqual(exc, object()) |
| 3752 | self.assertEqual(exc, ALWAYS_EQ) |
| 3753 | |
| 3754 | def test_comparison_params_variations(self): |
| 3755 | def raise_exc(): |
nothing calls this directly
no test coverage detected