(self)
| 1957 | self.assertRaises(ZstdError, f.read) |
| 1958 | |
| 1959 | def test_read_exception(self): |
| 1960 | class C: |
| 1961 | def read(self, size=-1): |
| 1962 | raise OSError |
| 1963 | with ZstdFile(C()) as f: |
| 1964 | with self.assertRaises(OSError): |
| 1965 | f.read(10) |
| 1966 | |
| 1967 | def test_read1(self): |
| 1968 | with ZstdFile(io.BytesIO(DAT_130K_C)) as f: |
nothing calls this directly
no test coverage detected