diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-01-19 13:10:27 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-01-19 13:10:27 (GMT) |
commit | 2e659ce36f9f48abc7515f83037274fbfb1f779e (patch) | |
tree | 75ea018db7a9dd7566a72c000a686a6cfe09a142 /Lib/test/test_os.py | |
parent | 4b78233cbd845cdd4b49bc5999a2ea9ea028b277 (diff) | |
download | cpython-2e659ce36f9f48abc7515f83037274fbfb1f779e.zip cpython-2e659ce36f9f48abc7515f83037274fbfb1f779e.tar.gz cpython-2e659ce36f9f48abc7515f83037274fbfb1f779e.tar.bz2 |
Issue 4957
Let os.ftruncate raise OSError like documented.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 2c9d9bf..5c94d7d 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -570,10 +570,9 @@ class TestInvalidFD(unittest.TestCase): if hasattr(os, "fpathconf"): self.assertRaises(OSError, os.fpathconf, 10, "PC_NAME_MAX") - #this is a weird one, it raises IOError unlike the others def test_ftruncate(self): if hasattr(os, "ftruncate"): - self.assertRaises(IOError, os.ftruncate, 10, 0) + self.assertRaises(OSError, os.ftruncate, 10, 0) def test_lseek(self): if hasattr(os, "lseek"): |