MCPcopy Create free account
hub / github.com/NVIDIA/DALI / setUpModule

Function setUpModule

dali/test/python/reader/test_file.py:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def setUpModule():
44 global g_root
45 global g_files
46 global g_tmpdir
47
48 g_tmpdir = tempfile.TemporaryDirectory()
49 g_root = g_tmpdir.__enter__()
50 g_files = [str(i) + " x.dat" for i in range(10)] # name with a space in the middle!
51 populate(g_root, g_files)
52
53
54def tearDownModule():

Callers

nothing calls this directly

Calls 2

populateFunction · 0.85
__enter__Method · 0.45

Tested by

no test coverage detected