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