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

Function remove_if_exists

Lib/test/test_unicode_file.py:21–23  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

19 raise unittest.SkipTest("No Unicode filesystem semantics on this platform.")
20
21def remove_if_exists(filename):
22 if os.path.exists(filename):
23 os.unlink(filename)
24
25class TestUnicodeFiles(unittest.TestCase):
26 # The 'do_' functions are the actual tests. They generally assume the

Callers 1

_test_singleMethod · 0.85

Calls 2

existsMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…