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

Function test_py_open_input_stream

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

Source from the content-addressed store, hash-verified

1902
1903
1904def test_py_open_input_stream():
1905 fs = PyFileSystem(DummyHandler())
1906
1907 with fs.open_input_stream("somefile") as f:
1908 assert f.read() == b"somefile:input_stream"
1909 with pytest.raises(FileNotFoundError):
1910 fs.open_input_stream("notfound")
1911
1912
1913def test_py_open_input_file():

Callers

nothing calls this directly

Calls 3

DummyHandlerClass · 0.85
open_input_streamMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected