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

Function _assert_error_on_write

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

Source from the content-addressed store, hash-verified

124
125
126def _assert_error_on_write(df, exc, path=None, version=2):
127 # check that we are raising the exception
128 # on writing
129
130 if path is None:
131 path = random_path()
132
133 TEST_FILES.append(path)
134
135 def f():
136 write_feather(df, path, version=version)
137
138 pytest.raises(exc, f)
139
140
141@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