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

Function unlink

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

Source from the content-addressed store, hash-verified

368
369
370def unlink(filename):
371 try:
372 _unlink(filename)
373 except (FileNotFoundError, NotADirectoryError):
374 pass
375
376
377if 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
setUpMethod · 0.90
tearDownMethod · 0.90
do_testMethod · 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
setUpMethod · 0.72
tearDownMethod · 0.72
do_testMethod · 0.72