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

Function test_SerializableLock_name_collision

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SerializableLockClass · 0.90

Tested by

no test coverage detected