Fix stdlib stubtest for latest Python patch releases (#13464)

This commit is contained in:
Alex Waygood
2025-02-05 23:33:27 +00:00
committed by GitHub
parent aac4394eb2
commit 5caaf2e1fb
12 changed files with 28 additions and 5 deletions

View File

@@ -240,6 +240,7 @@ if sys.platform == "linux" and sys.version_info >= (3, 12):
"CLONE_VM",
"setns",
"unshare",
"PIDFD_NONBLOCK",
]
if sys.platform == "linux" and sys.version_info >= (3, 10):
__all__ += [
@@ -1603,6 +1604,9 @@ if sys.version_info >= (3, 9):
if sys.platform == "linux":
def pidfd_open(pid: int, flags: int = ...) -> int: ...
if sys.version_info >= (3, 12) and sys.platform == "linux":
PIDFD_NONBLOCK: Final = 2048
if sys.version_info >= (3, 12) and sys.platform == "win32":
def listdrives() -> list[str]: ...
def listmounts(volume: str) -> list[str]: ...