(self)
| 774 | self.assertFalse(bio.closed) |
| 775 | |
| 776 | def testPeekBytesIO(self): |
| 777 | with BytesIO(self.DATA) as bio: |
| 778 | with BZ2File(bio) as bz2f: |
| 779 | pdata = bz2f.peek() |
| 780 | self.assertNotEqual(len(pdata), 0) |
| 781 | self.assertStartsWith(self.TEXT, pdata) |
| 782 | self.assertEqual(bz2f.read(), self.TEXT) |
| 783 | |
| 784 | def testWriteBytesIO(self): |
| 785 | with BytesIO() as bio: |
nothing calls this directly
no test coverage detected