diff --git a/stdlib/@tests/stubtest_allowlists/linux-py313.txt b/stdlib/@tests/stubtest_allowlists/linux-py313.txt index 435bac4aa..bc2645131 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py313.txt @@ -24,8 +24,3 @@ posixpath.splitroot readline.backend stat.SF_SUPPORTED stat.SF_SYNTHETIC -syslog.LOG_INSTALL -syslog.LOG_LAUNCHD -syslog.LOG_NETINFO -syslog.LOG_RAS -syslog.LOG_REMOTEAUTH diff --git a/stdlib/syslog.pyi b/stdlib/syslog.pyi index 1b1d4cfa1..1e0d0d383 100644 --- a/stdlib/syslog.pyi +++ b/stdlib/syslog.pyi @@ -38,11 +38,13 @@ if sys.platform != "win32": if sys.version_info >= (3, 13): LOG_FTP: Final = 88 - LOG_INSTALL: Final = 112 - LOG_LAUNCHD: Final = 192 - LOG_NETINFO: Final = 96 - LOG_RAS: Final = 120 - LOG_REMOTEAUTH: Final = 104 + + if sys.platform == "darwin": + LOG_INSTALL: Final = 112 + LOG_LAUNCHD: Final = 192 + LOG_NETINFO: Final = 96 + LOG_RAS: Final = 120 + LOG_REMOTEAUTH: Final = 104 def LOG_MASK(pri: int, /) -> int: ... def LOG_UPTO(pri: int, /) -> int: ...