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

Function needs_windows

Lib/test/test_pathlib/test_pathlib.py:63–66  ·  view source on GitHub ↗

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

(fn)

Source from the content-addressed store, hash-verified

61 return fn
62
63def needs_windows(fn):
64 """Decorator that marks a test as requiring a Windows-flavoured path class."""
65 _tests_needing_windows.add(fn.__name__)
66 return fn
67
68def needs_symlinks(fn):
69 """Decorator that marks a test as requiring a path class that supports symlinks."""

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…