MCPcopy
hub / github.com/dask/dask / test_py2_local_bytes

Function test_py2_local_bytes

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

allFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…