diff --git a/stdlib/@tests/stubtest_allowlists/linux-py312.txt b/stdlib/@tests/stubtest_allowlists/linux-py312.txt index 9951806f9..9e3c22e70 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py312.txt @@ -1,7 +1,3 @@ -# Exists on some Linux builds, and is documented, -# but is unavailable in Github Actions on Linux with Python 3.12 -(os|posix).CLONE_NEWTIME - # Exists at runtime, but missing from stubs spwd.struct_spwd.sp_nam spwd.struct_spwd.sp_pwd diff --git a/stdlib/@tests/stubtest_allowlists/linux-py313.txt b/stdlib/@tests/stubtest_allowlists/linux-py313.txt index 365e2626a..810107738 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py313.txt @@ -60,7 +60,3 @@ syslog.LOG_LAUNCHD syslog.LOG_NETINFO syslog.LOG_RAS syslog.LOG_REMOTEAUTH - -# Exists on some Linux builds, and is documented, -# but is unavailable in Github Actions on Linux with Python 3.12 -(os|posix).CLONE_NEWTIME diff --git a/stdlib/@tests/stubtest_allowlists/linux.txt b/stdlib/@tests/stubtest_allowlists/linux.txt index 0e98477c2..0c66b6bb6 100644 --- a/stdlib/@tests/stubtest_allowlists/linux.txt +++ b/stdlib/@tests/stubtest_allowlists/linux.txt @@ -1,3 +1,7 @@ +# ========== +# TODO: Review the following +# ========== + _socket.* _posixsubprocess.cloexec_pipe curses.has_key @@ -5,11 +9,6 @@ os.plock selectors.KqueueSelector socket.[A-Z0-9_]+ -# Platform differences that cannot be captured by the type system -(posix.O_[A-Z_]+)? -(posix.ST_[A-Z]+)? -(termios.[A-Z0-9_]+)? - _ctypes.dlclose _ctypes.dlopen _ctypes.dlsym @@ -35,6 +34,10 @@ multiprocessing.popen_spawn_win32 fcntl.I_[A-Z0-9_]+ os.SCHED_[A-Z_]+ posix.SCHED_[A-Z_]+ +((os|posix).CLONE_[A-Z]+)? # Python 3.12+ +(posix.O_[A-Z_]+)? +(posix.ST_[A-Z]+)? +(termios.[A-Z0-9_]+)? # Some of these exist on non-windows, but they are useless and this is not intended stat.FILE_ATTRIBUTE_[A-Z_]+ diff --git a/stdlib/os/__init__.pyi b/stdlib/os/__init__.pyi index 31c5d2aa3..9045aa105 100644 --- a/stdlib/os/__init__.pyi +++ b/stdlib/os/__init__.pyi @@ -1141,16 +1141,16 @@ if sys.version_info >= (3, 10) and sys.platform == "linux": if sys.version_info >= (3, 12) and sys.platform == "linux": CLONE_FILES: int CLONE_FS: int - CLONE_NEWCGROUP: int - CLONE_NEWIPC: int - CLONE_NEWNET: int + CLONE_NEWCGROUP: int # Linux 4.6+ + CLONE_NEWIPC: int # Linux 2.6.19+ + CLONE_NEWNET: int # Linux 2.6.24+ CLONE_NEWNS: int - CLONE_NEWPID: int - CLONE_NEWTIME: int - CLONE_NEWUSER: int - CLONE_NEWUTS: int + CLONE_NEWPID: int # Linux 3.8+ + CLONE_NEWTIME: int # Linux 5.6+ + CLONE_NEWUSER: int # Linux 3.8+ + CLONE_NEWUTS: int # Linux 2.6.19+ CLONE_SIGHAND: int - CLONE_SYSVSEM: int + CLONE_SYSVSEM: int # Linux 2.6.26+ CLONE_THREAD: int CLONE_VM: int def unshare(flags: int) -> None: ...