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

Method setUp

Lib/test/test_os/test_os.py:4764–4767  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4762
4763class TestDirEntry(unittest.TestCase):
4764 def setUp(self):
4765 self.path = os.path.realpath(os_helper.TESTFN)
4766 self.addCleanup(os_helper.rmtree, self.path)
4767 os.mkdir(self.path)
4768
4769 def test_uninstantiable(self):
4770 self.assertRaises(TypeError, os.DirEntry)

Callers

nothing calls this directly

Calls 3

addCleanupMethod · 0.80
realpathMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected