MCPcopy Create free account
hub / github.com/modelscope/modelscope / setUp

Method setUp

tests/utils/test_megatron.py:18–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16class MegatronTest(DistributedTestCase):
17
18 def setUp(self):
19 print(('Testing %s.%s' % (type(self).__name__, self._testMethodName)))
20 self.tmp_dir = tempfile.TemporaryDirectory().name
21 if not os.path.exists(self.tmp_dir):
22 os.makedirs(self.tmp_dir)
23
24 def tearDown(self):
25 shutil.rmtree(self.tmp_dir)

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected