MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / test_getotherprocess

Method test_getotherprocess

test/null/test_disk_cache.py:22–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 self.assertEqual(ret, ("complex", 123, "object"))
21
22 def test_getotherprocess(self):
23 table = "test_getotherprocess"
24 from multiprocessing import Process, Queue
25 diskcache_put(table, "k", "getme")
26 q = Queue()
27 p = Process(target=remote_get, args=(table,q,"k"))
28 p.start()
29 p.join()
30 self.assertEqual(q.get(), "getme")
31
32 def test_putotherprocess(self):
33 table = "test_putotherprocess"

Callers

nothing calls this directly

Calls 3

diskcache_putFunction · 0.90
startMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected