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

Function _assert_error_on_write

python/pyarrow/tests/test_feather.py:133–145  ·  view source on GitHub ↗
(df, exc, path=None, version=2)

Source from the content-addressed store, hash-verified

131
132
133def _assert_error_on_write(df, exc, path=None, version=2):
134 # check that we are raising the exception
135 # on writing
136
137 if path is None:
138 path = random_path()
139
140 TEST_FILES.append(path)
141
142 def f():
143 write_feather(df, path, version=version)
144
145 pytest.raises(exc, f)
146
147
148@pytest.mark.numpy

Callers 3

test_duplicate_columnsFunction · 0.85
test_unsupportedFunction · 0.85

Calls 2

random_pathFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected