(self)
| 765 | self.assertFalse(bio.closed) |
| 766 | |
| 767 | def testPeekBytesIO(self): |
| 768 | with BytesIO(self.DATA) as bio: |
| 769 | with BZ2File(bio) as bz2f: |
| 770 | pdata = bz2f.peek() |
| 771 | self.assertNotEqual(len(pdata), 0) |
| 772 | self.assertStartsWith(self.TEXT, pdata) |
| 773 | self.assertEqual(bz2f.read(), self.TEXT) |
| 774 | |
| 775 | def testWriteBytesIO(self): |
| 776 | with BytesIO() as bio: |
nothing calls this directly
no test coverage detected