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

Function unlink

Lib/test/support/os_helper.py:371–375  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

369
370
371def unlink(filename):
372 try:
373 _unlink(filename)
374 except (FileNotFoundError, NotADirectoryError):
375 pass
376
377
378if sys.platform.startswith("win"):

Callers 15

tearDownMethod · 0.90
test_binary_modesMethod · 0.90
test_text_modesMethod · 0.90
test_x_modeMethod · 0.90
__exit__Method · 0.90
tearDownMethod · 0.90
tearDownMethod · 0.90
tearDownMethod · 0.90
setUpMethod · 0.90
tearDownMethod · 0.90

Calls 1

_unlinkFunction · 0.85

Tested by 15

tearDownMethod · 0.72
test_binary_modesMethod · 0.72
test_text_modesMethod · 0.72
test_x_modeMethod · 0.72
__exit__Method · 0.72
tearDownMethod · 0.72
tearDownMethod · 0.72
tearDownMethod · 0.72
setUpMethod · 0.72
tearDownMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…