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

Method touch

Lib/test/test_ensurepip.py:23–25  ·  view source on GitHub ↗
(self, directory, filename)

Source from the content-addressed store, hash-verified

21
22class TestPackages(unittest.TestCase):
23 def touch(self, directory, filename):
24 fullname = os.path.join(directory, filename)
25 open(fullname, "wb").close()
26
27 def test_version(self):
28 # Test version()

Calls 3

openFunction · 0.50
joinMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected