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

Method check_error_on_write

pandas/tests/io/test_parquet.py:381–384  ·  view source on GitHub ↗
(self, df, engine, exc, err_msg, temp_file_path)

Source from the content-addressed store, hash-verified

379
380class Base:
381 def check_error_on_write(self, df, engine, exc, err_msg, temp_file_path):
382 # check that we are raising the exception on writing
383 with pytest.raises(exc, match=err_msg):
384 to_parquet(df, temp_file_path, engine, compression=None)
385
386 def check_external_error_on_write(self, df, engine, exc, temp_file_path):
387 # check that an external library is raising the exception on writing

Calls 2

to_parquetFunction · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected