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

Method setUp

Lib/test/test_string_literals.py:66–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64class TestLiterals(unittest.TestCase):
65
66 def setUp(self):
67 self.save_path = sys.path[:]
68 self.tmpdir = tempfile.mkdtemp()
69 sys.path.insert(0, self.tmpdir)
70
71 def tearDown(self):
72 sys.path[:] = self.save_path

Callers

nothing calls this directly

Calls 2

mkdtempMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected