Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit baddc84

Browse files
committed
Merge with 3.4
2 parents e6d9805 + 88b2b45 commit baddc84

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Lib/ctypes/test/test_python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def test_PyString_FromString(self):
4242
# This test is unreliable, because it is possible that code in
4343
# unittest changes the refcount of the '42' integer. So, it
4444
# is disabled by default.
45-
@requires("refcount")
4645
@support.refcount_test
4746
def test_PyLong_Long(self):
47+
requires("refcount")
4848
ref42 = grc(42)
4949
pythonapi.PyLong_FromLong.restype = py_object
5050
self.assertEqual(pythonapi.PyLong_FromLong(42), 42)

Lib/ctypes/test/test_win32.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ def test_callconv_2(self):
3838

3939
@unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
4040
class FunctionCallTestCase(unittest.TestCase):
41-
@requires("SEH")
41+
@unittest.skipUnless('MSC' in sys.version, "SEH only supported by MSC")
42+
@unittest.skipIf(sys.executable.endswith('_d.exe'),
43+
"SEH not enabled in debug builds")
4244
def test_SEH(self):
45+
requires("SEH")
4346
# Call functions with invalid arguments, and make sure
4447
# that access violations are trapped and raise an
4548
# exception.

0 commit comments

Comments
 (0)