[Python-checkins] cpython (3.4): Closes #23256: Avoid a crash in test_ctypes

zach.ware python-checkins at python.org
Sat Jan 17 15:53:19 CET 2015


https://hg.python.org/cpython/rev/2bbd7b739b85
changeset: 94190:2bbd7b739b85
branch: 3.4
parent: 94188:0d8380c493ad
user: Zachary Ware <zachary.ware at gmail.com>
date: Sat Jan 17 08:50:42 2015 -0600
summary:
 Closes #23256: Avoid a crash in test_ctypes
Only happened with oddly capitalized debug executables on Windows.
Patch by Claudiu Popa.
files:
 Lib/ctypes/test/test_win32.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py
--- a/Lib/ctypes/test/test_win32.py
+++ b/Lib/ctypes/test/test_win32.py
@@ -38,7 +38,7 @@
 @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
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /