(self)
| 25 | os_helper.unlink(TESTFN) |
| 26 | |
| 27 | def testWeakRefs(self): |
| 28 | # verify weak references |
| 29 | p = proxy(self.f) |
| 30 | p.write(b'teststring') |
| 31 | self.assertEqual(self.f.tell(), p.tell()) |
| 32 | self.f.close() |
| 33 | self.f = None |
| 34 | gc_collect() # For PyPy or other GCs. |
| 35 | self.assertRaises(ReferenceError, getattr, p, 'tell') |
| 36 | |
| 37 | def testAttributes(self): |
| 38 | # verify expected attributes exist |
nothing calls this directly
no test coverage detected