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

Function test_SerializableLock_name_collision

dask/tests/test_utils.py:399–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398
399def test_SerializableLock_name_collision():
400 a = SerializableLock("a")
401 b = SerializableLock("b")
402 c = SerializableLock("a")
403 d = SerializableLock()
404
405 assert a.lock is not b.lock
406 assert a.lock is c.lock
407 assert d.lock not in (a.lock, b.lock, c.lock)
408
409
410def test_SerializableLock_locked():

Callers

nothing calls this directly

Calls 1

SerializableLockClass · 0.90

Tested by

no test coverage detected