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

Function test_py_open_input_file

python/pyarrow/tests/test_fs.py:1913–1919  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1911
1912
1913def test_py_open_input_file():
1914 fs = PyFileSystem(DummyHandler())
1915
1916 with fs.open_input_file("somefile") as f:
1917 assert f.read() == b"somefile:input_file"
1918 with pytest.raises(FileNotFoundError):
1919 fs.open_input_file("notfound")
1920
1921
1922def test_py_open_output_stream():

Callers

nothing calls this directly

Calls 3

DummyHandlerClass · 0.85
open_input_fileMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected