(self)
| 982 | self.assertRaises(EOFError, f.read, 1) |
| 983 | |
| 984 | def test_read_bad_args(self): |
| 985 | f = LZMAFile(BytesIO(COMPRESSED_XZ)) |
| 986 | f.close() |
| 987 | self.assertRaises(ValueError, f.read) |
| 988 | with LZMAFile(BytesIO(), "w") as f: |
| 989 | self.assertRaises(ValueError, f.read) |
| 990 | with LZMAFile(BytesIO(COMPRESSED_XZ)) as f: |
| 991 | self.assertRaises(TypeError, f.read, float()) |
| 992 | |
| 993 | def test_read_bad_data(self): |
| 994 | with LZMAFile(BytesIO(COMPRESSED_BOGUS)) as f: |
nothing calls this directly
no test coverage detected