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

Method setUp

Lib/test/test_regrtest.py:594–598  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

592 TESTNAME_REGEX = r'test_[a-zA-Z0-9_]+'
593
594 def setUp(self):
595 self.testdir = os.path.realpath(os.path.dirname(__file__))
596
597 self.tmptestdir = tempfile.mkdtemp()
598 self.addCleanup(os_helper.rmtree, self.tmptestdir)
599
600 def create_test(self, name=None, code=None):
601 if not name:

Callers 1

setUpMethod · 0.45

Calls 4

mkdtempMethod · 0.80
addCleanupMethod · 0.80
realpathMethod · 0.45
dirnameMethod · 0.45

Tested by

no test coverage detected