[pypy-svn] r52862 - pypy/dist/pypy/lib/app_test/ctypes
pedronis at codespeak.net
pedronis at codespeak.net
Sun Mar 23 11:26:33 CET 2008
Author: pedronis
Date: Sun Mar 23 11:26:31 2008
New Revision: 52862
Modified:
pypy/dist/pypy/lib/app_test/ctypes/test_random_things.py
Log:
tweak
Modified: pypy/dist/pypy/lib/app_test/ctypes/test_random_things.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/test_random_things.py (original)
+++ pypy/dist/pypy/lib/app_test/ctypes/test_random_things.py Sun Mar 23 11:26:31 2008
@@ -1,25 +1,13 @@
+# derived from test_random_things.py
+import py
from ctypes import *
-import unittest, sys
+import sys
def callback_func(arg):
42 / arg
raise ValueError, arg
-if sys.platform == "win32":
-
- class call_function_TestCase(unittest.TestCase):
- # _ctypes.call_function is deprecated and private, but used by
- # Gary Bishp's readline module. If we have it, we must test it as well.
-
- def test(self):
- from _ctypes import call_function
- hdll = windll.kernel32.LoadLibraryA("kernel32")
- funcaddr = windll.kernel32.GetProcAddress(hdll, "GetModuleHandleA")
-
- assert call_function(funcaddr, (None,)) == (
- windll.kernel32.GetModuleHandleA(None))
-
-py.test.skip("exception gets eaten??")
+py.test.skip("implementation details are different on pypy")
class TestCallbackTraceback:
# When an exception is raised in a ctypes callback function, the C
More information about the Pypy-commit
mailing list