MCPcopy Create free account
hub / github.com/python/cpython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

4782 check_no_resource_warning = warnings_helper.check_no_resource_warning
4783
4784 def setUp(self):
4785 self.path = os.path.realpath(os_helper.TESTFN)
4786 self.bytes_path = os.fsencode(self.path)
4787 self.addCleanup(os_helper.rmtree, self.path)
4788 os.mkdir(self.path)
4789
4790 def create_file(self, name="file.txt"):
4791 path = self.bytes_path if isinstance(name, bytes) else self.path

Callers

nothing calls this directly

Calls 3

addCleanupMethod · 0.80
realpathMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected