]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23458: skip test_os.test_urandom_fd_non_inheritable() on Windows
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 24 Feb 2015 14:12:57 +0000 (15:12 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 24 Feb 2015 14:12:57 +0000 (15:12 +0100)
Lib/test/test_os.py

index e60faae445378052a1a9d09e1241c419c17c93d1..fae159d50636397c7cc331e784df3cac3ca581e8 100644 (file)
@@ -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