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

Method setUpClass

test/unit/test_tinyfs.py:34–39  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

32class TestTinyFS(unittest.TestCase):
33 @classmethod
34 def setUpClass(cls):
35 _chunks.clear()
36 cls._server = socketserver.ThreadingTCPServer(('127.0.0.1', 0), _Handler)
37 cls._server.daemon_threads = True
38 threading.Thread(target=cls._server.serve_forever, daemon=True).start()
39 os.environ["TINYFS_ENDPOINT"] = f"127.0.0.1:{cls._server.server_address[1]}"
40
41 @classmethod
42 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 2

clearMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected