reenable the invalid fd test for fdopen

This commit is contained in:
Benjamin Peterson 2009-01-19 15:15:02 +00:00
parent 806d4029ed
commit 05e782fc3b
2 changed files with 3 additions and 1 deletions

View file

@ -588,7 +588,7 @@ class Win32ErrorTests(unittest.TestCase):
self.assertRaises(WindowsError, os.utime, support.TESTFN, 0) self.assertRaises(WindowsError, os.utime, support.TESTFN, 0)
class TestInvalidFD(unittest.TestCase): class TestInvalidFD(unittest.TestCase):
singles = ["fchdir", "dup", "fdatasync", "fstat", singles = ["fchdir", "dup", "fdopen", "fdatasync", "fstat",
"fstatvfs", "fsync", "tcgetpgrp", "ttyname"] "fstatvfs", "fsync", "tcgetpgrp", "ttyname"]
#singles.append("close") #singles.append("close")
#We omit close because it doesn'r raise an exception on some platforms #We omit close because it doesn'r raise an exception on some platforms

View file

@ -12,6 +12,8 @@ What's New in Python 3.1 alpha 0
Core and Builtins 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 - Issue #4838: When a module is deallocated, free the memory backing the
optional module state data. optional module state data.