mirror of https://github.com/python/cpython
No crashes on Linux in the ctypes test suite any longer, so we can
remove the 'crash-protection'.
This commit is contained in:
parent
f4f771fe0f
commit
745f5e2de7
|
@ -160,8 +160,6 @@ class FunctionTestCase(unittest.TestCase):
|
|||
result = f(1, 2, 3, 4, 5.0, 6.0, 21)
|
||||
self.failUnlessEqual(result, 42)
|
||||
|
||||
from ctypes.test import is_resource_enabled
|
||||
if is_resource_enabled("struni-crash"):
|
||||
def test_stringresult(self):
|
||||
f = dll._testfunc_p_p
|
||||
f.argtypes = None
|
||||
|
|
|
@ -67,8 +67,6 @@ class PythonAPITestCase(unittest.TestCase):
|
|||
del pyobj
|
||||
self.failUnlessEqual(grc(s), ref)
|
||||
|
||||
from ctypes.test import is_resource_enabled
|
||||
if is_resource_enabled("struni-crash"):
|
||||
def test_PyOS_snprintf(self):
|
||||
PyOS_snprintf = pythonapi.PyOS_snprintf
|
||||
PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p
|
||||
|
|
Loading…
Reference in New Issue