MCPcopy Create free account
hub / github.com/apache/arrow / test_file_error_python_exception

Function test_file_error_python_exception

python/pyarrow/tests/parquet/test_basic.py:341–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339
340
341def test_file_error_python_exception():
342 class BogusFile(io.BytesIO):
343 def read(self, *args):
344 raise ZeroDivisionError("zorglub")
345
346 def seek(self, *args):
347 raise ZeroDivisionError("zorglub")
348
349 # ensure the Python exception is restored
350 with pytest.raises(ZeroDivisionError, match="zorglub"):
351 pq.read_table(BogusFile(b""))
352
353
354def test_parquet_read_from_buffer(tempdir):

Callers

nothing calls this directly

Calls 2

BogusFileClass · 0.85
read_tableMethod · 0.45

Tested by

no test coverage detected