diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-07-23 14:40:27 -0500 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-07-23 14:40:27 -0500 |
commit | baddc840d5e3bb5ca5b48b0ae9f93bea09b35f19 (patch) | |
tree | 73393982b6219b7e8424637926d6ed928f173289 | |
parent | e6d9805ec4429878a7a610ae91f4156a6f7a6217 (diff) | |
parent | 88b2b45154c13947487fcdeca80f769092fb6890 (diff) | |
download | cpython-git-baddc840d5e3bb5ca5b48b0ae9f93bea09b35f19.tar.gz |
Merge with 3.4
-rw-r--r-- | Lib/ctypes/test/test_python_api.py | 2 | ||||
-rw-r--r-- | Lib/ctypes/test/test_win32.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_python_api.py b/Lib/ctypes/test/test_python_api.py index 8aae46f927..0bd2f4cd5b 100644 --- a/Lib/ctypes/test/test_python_api.py +++ b/Lib/ctypes/test/test_python_api.py @@ -42,9 +42,9 @@ class PythonAPITestCase(unittest.TestCase): # This test is unreliable, because it is possible that code in # unittest changes the refcount of the '42' integer. So, it # is disabled by default. - @requires("refcount") @support.refcount_test def test_PyLong_Long(self): + requires("refcount") ref42 = grc(42) pythonapi.PyLong_FromLong.restype = py_object self.assertEqual(pythonapi.PyLong_FromLong(42), 42) diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py index b47a61ac2d..fcd216312a 100644 --- a/Lib/ctypes/test/test_win32.py +++ b/Lib/ctypes/test/test_win32.py @@ -38,8 +38,11 @@ class WindowsTestCase(unittest.TestCase): @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test') class FunctionCallTestCase(unittest.TestCase): - @requires("SEH") + @unittest.skipUnless('MSC' in sys.version, "SEH only supported by MSC") + @unittest.skipIf(sys.executable.endswith('_d.exe'), + "SEH not enabled in debug builds") def test_SEH(self): + requires("SEH") # Call functions with invalid arguments, and make sure # that access violations are trapped and raise an # exception. |