Author: Manuel Jacob <[email protected]>
Branch: py3k
Changeset: r77798:9cbfdd1c8b6b
Date: 2015-06-03 01:32 +0200
http://bitbucket.org/pypy/pypy/changeset/9cbfdd1c8b6b/
Log: 2to3
diff --git a/pypy/module/_cffi_backend/test/test_re_python.py
b/pypy/module/_cffi_backend/test/test_re_python.py
--- a/pypy/module/_cffi_backend/test/test_re_python.py
+++ b/pypy/module/_cffi_backend/test/test_re_python.py
@@ -171,7 +171,7 @@
def test_global_const_nonint(self):
from re_python_pysrc import ffi
lib = ffi.dlopen(self.extmod)
- assert ffi.string(lib.globalconsthello, 8) == "hello"
+ assert ffi.string(lib.globalconsthello, 8) == b"hello"
raises(AttributeError, ffi.addressof, lib, 'globalconsthello')
def test_rtld_constants(self):
diff --git a/pypy/module/_cffi_backend/test/test_recompiler.py
b/pypy/module/_cffi_backend/test/test_recompiler.py
--- a/pypy/module/_cffi_backend/test/test_recompiler.py
+++ b/pypy/module/_cffi_backend/test/test_recompiler.py
@@ -855,7 +855,7 @@
# but we can get its address
p = ffi.addressof(lib, 'globvar')
assert ffi.typeof(p) == ffi.typeof('opaque_t *')
- assert ffi.string(ffi.cast("char *", p), 8) == "hello"
+ assert ffi.string(ffi.cast("char *", p), 8) == b"hello"
def test_constant_of_value_unknown_to_the_compiler(self):
extra_c_source = self.udir + self.os_sep + (
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit