No crashes on Linux in the ctypes test suite any longer, so we can

remove the 'crash-protection'.
This commit is contained in:
Thomas Heller 2007-07-12 20:10:18 +00:00
parent f4f771fe0f
commit 745f5e2de7
2 changed files with 18 additions and 22 deletions

View File

@ -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

View File

@ -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