MCPcopy Create free account
hub / github.com/python/cpython / skip_unless_symlink

Function skip_unless_symlink

Lib/test/support/os_helper.py:195–199  ·  view source on GitHub ↗

Skip decorator for tests that require functional symlink

(test)

Source from the content-addressed store, hash-verified

193
194
195def skip_unless_symlink(test):
196 """Skip decorator for tests that require functional symlink"""
197 ok = can_symlink()
198 msg = "Requires functional symlink implementation"
199 return test if ok else unittest.skip(msg)(test)
200
201
202_can_hardlink = None

Callers

nothing calls this directly

Calls 2

can_symlinkFunction · 0.85
skipMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…