MCPcopy Create free account
hub / github.com/dask/dask / test_write_single_hdf

Function test_write_single_hdf

dask/tests/test_distributed.py:956–965  ·  view source on GitHub ↗

https://github.com/dask/dask/issues/9972 and https://github.com/dask/dask/issues/10315

(c, lock_param)

Source from the content-addressed store, hash-verified

954@pytest.mark.skip_with_pyarrow_strings # AttributeError: 'StringDtype' object has no attribute 'itemsize'
955@pytest.mark.parametrize("lock_param", [True, distributed.lock.Lock()])
956def test_write_single_hdf(c, lock_param):
957 """https://github.com/dask/dask/issues/9972 and
958 https://github.com/dask/dask/issues/10315
959 """
960 pytest.importorskip("pandas")
961 pytest.importorskip("dask.dataframe")
962 pytest.importorskip("tables")
963 with tmpfile(extension="hd5") as f:
964 ddf = dask.datasets.timeseries(start="2000-01-01", end="2000-07-01", freq="12h")
965 ddf.to_hdf(str(f), key="/ds_*", lock=lock_param)
966
967
968def test_get_scheduler_default_client_config_interleaving(s):

Callers

nothing calls this directly

Calls 2

tmpfileFunction · 0.90
to_hdfMethod · 0.80

Tested by

no test coverage detected