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

Method test_putotherprocess

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

Source from the content-addressed store, hash-verified

30 self.assertEqual(q.get(), "getme")
31
32 def test_putotherprocess(self):
33 table = "test_putotherprocess"
34 from multiprocessing import Process
35 p = Process(target=remote_put, args=(table,"k", "remote"))
36 p.start()
37 p.join()
38 self.assertEqual(diskcache_get(table, "k"), "remote")
39
40 def test_no_table(self):
41 self.assertIsNone(diskcache_get("faketable", "k"))

Callers

nothing calls this directly

Calls 2

diskcache_getFunction · 0.90
startMethod · 0.45

Tested by

no test coverage detected