summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-12-05 04:16:47 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-12-05 04:16:47 (GMT)
commit26253bb09e3283922b01f563680a0ad3791235ed (patch)
treef04db49235a1cb81ad5eb1d3ab862f108a019296 /Lib
parent43b5a857d62eb56ed14887acd8fce2f32c915d2e (diff)
downloadcpython-26253bb09e3283922b01f563680a0ad3791235ed.zip
cpython-26253bb09e3283922b01f563680a0ad3791235ed.tar.gz
cpython-26253bb09e3283922b01f563680a0ad3791235ed.tar.bz2
Should use posix_error here.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ntpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 237aec0..6464950 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -248,7 +248,7 @@ class TestNtpath(unittest.TestCase):
self.assertFalse(ntpath.sameopenfile(tf1.fileno(), tf2.fileno()))
# Make sure invalid values don't cause issues on win32
if sys.platform == "win32":
- with self.assertRaises(ValueError):
+ with self.assertRaises(OSError):
# Invalid file descriptors shouldn't display assert
# dialogs (#4804)
ntpath.sameopenfile(-1, -1)