]> granicus.if.org Git - python/commitdiff
reenable the invalid fd test for fdopen
authorBenjamin Peterson <benjamin@python.org>
Mon, 19 Jan 2009 15:15:02 +0000 (15:15 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 19 Jan 2009 15:15:02 +0000 (15:15 +0000)
Lib/test/test_os.py
Misc/NEWS

index 737333413b4b951a520cd8b865350b263966f1f6..f7471e55b9ffdad5f1006393bd8ba91b36d6c31c 100644 (file)
@@ -588,7 +588,7 @@ class Win32ErrorTests(unittest.TestCase):
         self.assertRaises(WindowsError, os.utime, support.TESTFN, 0)
 
 class TestInvalidFD(unittest.TestCase):
-    singles = ["fchdir", "dup", "fdatasync", "fstat",
+    singles = ["fchdir", "dup", "fdopen", "fdatasync", "fstat",
                "fstatvfs", "fsync", "tcgetpgrp", "ttyname"]
     #singles.append("close")
     #We omit close because it doesn'r raise an exception on some platforms
index 592e1a508cadec22b99a835a56b38628e7382161..1eb8559d265a8b2e6da8ef768d22ec83828e41ce 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,8 @@ What's New in Python 3.1 alpha 0
 Core and Builtins
 -----------------
 
+- Issue #4991: os.fdopen now raises an OSError for invalid file descriptors.
+
 - Issue #4838: When a module is deallocated, free the memory backing the
   optional module state data.