(self)
| 1944 | self.assertRaises(EOFError, f.read, 1) |
| 1945 | |
| 1946 | def test_read_bad_args(self): |
| 1947 | f = ZstdFile(io.BytesIO(COMPRESSED_DAT)) |
| 1948 | f.close() |
| 1949 | self.assertRaises(ValueError, f.read) |
| 1950 | with ZstdFile(io.BytesIO(), "w") as f: |
| 1951 | self.assertRaises(ValueError, f.read) |
| 1952 | with ZstdFile(io.BytesIO(COMPRESSED_DAT)) as f: |
| 1953 | self.assertRaises(TypeError, f.read, float()) |
| 1954 | |
| 1955 | def test_read_bad_data(self): |
| 1956 | with ZstdFile(io.BytesIO(COMPRESSED_BOGUS)) as f: |
nothing calls this directly
no test coverage detected