(self)
| 2588 | self.assertEqual(f.read().replace(os.linesep, "\n"), uncompressed) |
| 2589 | |
| 2590 | def test_encoding_error_handler(self): |
| 2591 | with io.BytesIO(compress(b"foo\xffbar")) as bio: |
| 2592 | with open(bio, "rt", encoding="ascii", errors="ignore") as f: |
| 2593 | self.assertEqual(f.read(), "foobar") |
| 2594 | |
| 2595 | def test_newline(self): |
| 2596 | # Test with explicit newline (universal newline mode disabled). |
nothing calls this directly
no test coverage detected