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

Method setUp

IPython/utils/tests/test_path.py:421–425  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

419
420class TestLinkOrCopy(unittest.TestCase):
421 def setUp(self):
422 self.tempdir = TemporaryDirectory()
423 self.src = self.dst("src")
424 with open(self.src, "w") as f:
425 f.write("Hello, world!")
426
427 def tearDown(self):
428 self.tempdir.cleanup()

Callers

nothing calls this directly

Calls 2

dstMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected