MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_argparse.py:117–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115class TempDirMixin(object):
116
117 def setUp(self):
118 self.temp_dir = tempfile.mkdtemp()
119 self.old_dir = os.getcwd()
120 os.chdir(self.temp_dir)
121
122 def tearDown(self):
123 os.chdir(self.old_dir)

Callers

nothing calls this directly

Calls 1

mkdtempMethod · 0.80

Tested by

no test coverage detected