File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -38,8 +38,11 @@ def test_callconv_2(self):
3838
3939@unittest .skipUnless (sys .platform == "win32" , 'Windows-specific test' )
4040class 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.
You can’t perform that action at this time.
0 commit comments