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

Function test_read_json_error

dask/dataframe/io/tests/test_json.py:196–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194
195
196def test_read_json_error():
197 with tmpfile("json") as f:
198 with pytest.raises(ValueError):
199 df.to_json(f, orient="split", lines=True)
200 df.to_json(f, orient="split", lines=False)
201 with pytest.raises(ValueError):
202 dd.read_json(f, orient="split", blocksize=1)
203
204
205@pytest.mark.parametrize("block", [5, 15, 33, 200, 90000])

Callers

nothing calls this directly

Calls 3

tmpfileFunction · 0.90
to_jsonMethod · 0.80
read_jsonMethod · 0.80

Tested by

no test coverage detected