]> granicus.if.org Git - python/commitdiff
Closes #23256: Avoid a crash in test_ctypes
authorZachary Ware <zachary.ware@gmail.com>
Sat, 17 Jan 2015 14:50:42 +0000 (08:50 -0600)
committerZachary Ware <zachary.ware@gmail.com>
Sat, 17 Jan 2015 14:50:42 +0000 (08:50 -0600)
Only happened with oddly capitalized debug executables on Windows.
Patch by Claudiu Popa.

Lib/ctypes/test/test_win32.py

index b90ab718ebb87b3e31cd789fb53c58f9f84edfaa..5867b0592924256bda8aed40d586f99bcdea2056 100644 (file)
@@ -38,7 +38,7 @@ class WindowsTestCase(unittest.TestCase):
 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
 class FunctionCallTestCase(unittest.TestCase):
     @unittest.skipUnless('MSC' in sys.version, "SEH only supported by MSC")
-    @unittest.skipIf(sys.executable.endswith('_d.exe'),
+    @unittest.skipIf(sys.executable.lower().endswith('_d.exe'),
                      "SEH not enabled in debug builds")
     def test_SEH(self):
         # Call functions with invalid arguments, and make sure