summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-01-17 14:50:42 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-01-17 14:50:42 (GMT)
commit465b057f919ee4f8384fe338331225621ed71028 (patch)
tree5ab2b60e7e1198b12c574581b564f33b21333af8 /Lib/ctypes
parentbd341629b0435a524f9f355de178af22cc6d31ea (diff)
downloadcpython-465b057f919ee4f8384fe338331225621ed71028.zip
cpython-465b057f919ee4f8384fe338331225621ed71028.tar.gz
cpython-465b057f919ee4f8384fe338331225621ed71028.tar.bz2
Closes #23256: Avoid a crash in test_ctypes
Only happened with oddly capitalized debug executables on Windows. Patch by Claudiu Popa.
Diffstat (limited to 'Lib/ctypes')
-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 b90ab71..5867b05 100644
--- a/Lib/ctypes/test/test_win32.py
+++ b/Lib/ctypes/test/test_win32.py
@@ -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