From 26253bb09e3283922b01f563680a0ad3791235ed Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Sun, 5 Dec 2010 04:16:47 +0000 Subject: Should use posix_error here. --- Lib/test/test_ntpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_ntpath.py') diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 237aec01f4..6464950982 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) -- cgit v1.2.1