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

Function test_py2_local_bytes

dask/bytes/tests/test_local.py:326–334  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

324
325
326def test_py2_local_bytes(tmpdir):
327 fn = str(tmpdir / "myfile.txt.gz")
328 with gzip.open(fn, mode="wb") as f:
329 f.write(b"hello\nworld")
330
331 files = open_files(fn, compression="gzip", mode="rt")
332
333 with files[0] as f:
334 assert all(isinstance(line, str) for line in f)
335
336
337def test_abs_paths(tmpdir):

Callers

nothing calls this directly

Calls 1

allFunction · 0.85

Tested by

no test coverage detected