Issue #23458: Skip test_urandom_fd_non_inheritable on OS X 10.4 since
FD_CLOEXEC is not supported there.
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index ee6027b..d82ee58 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -571,6 +571,8 @@
# os.urandom() doesn't use a file descriptor on Windows
@unittest.skipIf(sys.platform == "win32", "POSIX specific tests")
+ # FD_CLOEXEC is first supported on OS X 10.5
+ @test_support.requires_mac_ver(10, 5)
def test_urandom_fd_non_inheritable(self):
# Issue #23458: os.urandom() keeps a file descriptor open, but it
# must be non inheritable