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