MCPcopy Index your code
hub / github.com/RustPython/RustPython / touch

Method touch

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

Source from the content-addressed store, hash-verified

14
15class TestPackages(unittest.TestCase):
16 def touch(self, directory, filename):
17 fullname = os.path.join(directory, filename)
18 open(fullname, "wb").close()
19
20 def test_version(self):
21 # Test version()

Calls 3

openFunction · 0.50
joinMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected