summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes/test/test_win32.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ctypes/test/test_win32.py')
-rw-r--r--Lib/ctypes/test/test_win32.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py
index da21336..91ad314 100644
--- a/Lib/ctypes/test/test_win32.py
+++ b/Lib/ctypes/test/test_win32.py
@@ -41,7 +41,7 @@ if sys.platform == "win32":
# Call functions with invalid arguments, and make sure
# that access violations are trapped and raise an
# exception.
- self.assertRaises(WindowsError, windll.kernel32.GetModuleHandleA, 32)
+ self.assertRaises(OSError, windll.kernel32.GetModuleHandleA, 32)
def test_noargs(self):
# This is a special case on win32 x64