[pypy-svn] r51404 - pypy/dist/pypy/lib/app_test/ctypes
fijal at codespeak.net
fijal at codespeak.net
Tue Feb 12 11:52:48 CET 2008
Author: fijal
Date: Tue Feb 12 11:52:46 2008
New Revision: 51404
Modified:
pypy/dist/pypy/lib/app_test/ctypes/test_unicode.py
Log:
These tests are passing nowadays
Modified: pypy/dist/pypy/lib/app_test/ctypes/test_unicode.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/test_unicode.py (original)
+++ pypy/dist/pypy/lib/app_test/ctypes/test_unicode.py Tue Feb 12 11:52:46 2008
@@ -1,7 +1,6 @@
# coding: latin-1
import ctypes
import py
-py.test.skip("Unsupported")
try:
ctypes.c_wchar
@@ -29,7 +28,7 @@
assert wcslen(u"ab\u2070") == 3
# string args are converted
assert wcslen("abc") == 3
- raises(ctypes.ArgumentError, wcslen, "abä")
+ py.test.raises(ctypes.ArgumentError, wcslen, "abä")
def test_ascii_replace(self):
ctypes.set_conversion_mode("ascii", "replace")
@@ -68,12 +67,12 @@
assert buf[:] == u"ab\0\0\0\0"
class TestString(TestUnicode):
- def setup_method(self):
+ def setup_method(self, method):
self.prev_conv_mode = ctypes.set_conversion_mode("ascii", "strict")
func.argtypes = [ctypes.c_char_p]
func.restype = ctypes.c_char_p
- def teardown_method(self):
+ def teardown_method(self, method):
ctypes.set_conversion_mode(*self.prev_conv_mode)
func.argtypes = None
func.restype = ctypes.c_int
More information about the Pypy-commit
mailing list