From: Victor Stinner Date: Tue, 24 Feb 2015 14:12:57 +0000 (+0100) Subject: Issue #23458: skip test_os.test_urandom_fd_non_inheritable() on Windows X-Git-Tag: v2.7.10rc1~154 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebcbbfb9a2e1ccb86f8793efa98dffaaa2c088e6;p=thirdparty%2FPython%2Fcpython.git Issue #23458: skip test_os.test_urandom_fd_non_inheritable() on Windows --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index e60faae44537..fae159d50636 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -569,6 +569,8 @@ class URandomTests (unittest.TestCase): data2 = self.get_urandom_subprocess(16) self.assertNotEqual(data1, data2) + # os.urandom() doesn't use a file descriptor on Windows + @unittest.skipIf(sys.platform == "win32", "POSIX specific tests") def test_urandom_fd_non_inheritable(self): # Issue #23458: os.urandom() keeps a file descriptor open, but it # must be non inheritable