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

Function needs_posix

Lib/test/test_pathlib/test_pathlib.py:61–64  ·  view source on GitHub ↗

Decorator that marks a test as requiring a POSIX-flavoured path class.

(fn)

Source from the content-addressed store, hash-verified

59_tests_needing_symlinks = set()
60
61def needs_posix(fn):
62 """Decorator that marks a test as requiring a POSIX-flavoured path class."""
63 _tests_needing_posix.add(fn.__name__)
64 return fn
65
66def needs_windows(fn):
67 """Decorator that marks a test as requiring a Windows-flavoured path class."""

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected