MCPcopy
hub / github.com/pandas-dev/pandas / check_error_on_write

Method check_error_on_write

pandas/tests/io/test_feather.py:29–34  ·  view source on GitHub ↗
(self, df, exc, err_msg, temp_file)

Source from the content-addressed store, hash-verified

27@pytest.mark.single_cpu
28class TestFeather:
29 def check_error_on_write(self, df, exc, err_msg, temp_file):
30 # check that we are raising the exception
31 # on writing
32
33 with pytest.raises(exc, match=err_msg):
34 to_feather(df, temp_file)
35
36 def check_external_error_on_write(self, df, temp_file):
37 # check that we are raising the exception

Callers 1

test_errorMethod · 0.95

Calls 2

to_featherFunction · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected