[pypy-commit] pypy py3k: Merged.
prestontimmons
noreply at buildbot.pypy.org
Mon Mar 12 23:33:52 CET 2012
Author: Preston Timmons <prestontimmons at gmail.com>
Branch: py3k
Changeset: r53365:eed62026792b
Date: 2012-03-12 22:00 +0000
http://bitbucket.org/pypy/pypy/changeset/eed62026792b/
Log: Merged.
diff --git a/pypy/module/_ffi/test/test__ffi.py b/pypy/module/_ffi/test/test__ffi.py
--- a/pypy/module/_ffi/test/test__ffi.py
+++ b/pypy/module/_ffi/test/test__ffi.py
@@ -185,7 +185,7 @@
types.void)
assert get_dummy() == 0
ptr = get_dummy_ptr()
- assert type(ptr) in (int, long)
+ assert type(ptr) is int
ptr2 = MyPointerWrapper(ptr)
set_val_to_ptr(ptr2, 123)
assert get_dummy() == 123
@@ -235,11 +235,11 @@
#
# first, try automatic conversion from strings and unicode
assert mystrlen('foobar') == 6
- assert mystrlen(u'foobar') == 6
- assert mystrlen(u'ab\u2070') == 3
+ assert mystrlen('foobar') == 6
+ assert mystrlen('ab\u2070') == 3
# then, try to pass an explicit pointer
UniCharArray = _rawffi.Array('u')
- mystr = UniCharArray(7, u'foobar')
+ mystr = UniCharArray(7, 'foobar')
assert mystrlen(mystr.buffer) == 6
mystr.free()
mystrlen.free_temp_buffers()
@@ -401,8 +401,8 @@
libfoo = CDLL(self.libfoo_name)
sum_xy = libfoo.getfunc('sum_xy_wc', [types.unichar, types.unichar],
types.unichar)
- res = sum_xy(unichr(1000), unichr(2000))
- assert type(res) is unicode
+ res = sum_xy(chr(1000), chr(2000))
+ assert type(res) is str
assert ord(res) == 3000
def test_single_float_args(self):
diff --git a/pypy/module/_locale/test/test_locale.py b/pypy/module/_locale/test/test_locale.py
--- a/pypy/module/_locale/test/test_locale.py
+++ b/pypy/module/_locale/test/test_locale.py
@@ -35,7 +35,6 @@
_locale.setlocale(_locale.LC_ALL,
space.str_w(cls.w_language_pl))
except _locale.Error:
- raise
py.test.skip("necessary locales not installed")
# Windows forbids the UTF-8 character set since Windows XP.
More information about the pypy-commit
mailing list