(self)
| 1025 | |
| 1026 | @support.refcount_test |
| 1027 | def test_refleaks_in___init__(self): |
| 1028 | gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount') |
| 1029 | bzd = BZ2Decompressor() |
| 1030 | refs_before = gettotalrefcount() |
| 1031 | for i in range(100): |
| 1032 | bzd.__init__() |
| 1033 | self.assertAlmostEqual(gettotalrefcount() - refs_before, 0, delta=10) |
| 1034 | |
| 1035 | def test_uninitialized_BZ2Decompressor_crash(self): |
| 1036 | self.assertEqual(BZ2Decompressor.__new__(BZ2Decompressor). |
nothing calls this directly
no test coverage detected