[pypy-commit] cffi default: py3 test fix
arigo
pypy.commits at gmail.com
Mon Jan 2 15:24:50 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r2849:863081891de4
Date: 2017-01-02 21:24 +0100
http://bitbucket.org/cffi/cffi/changeset/863081891de4/
Log: py3 test fix
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
--- a/testing/cffi1/test_recompiler.py
+++ b/testing/cffi1/test_recompiler.py
@@ -2166,7 +2166,7 @@
return s;
}
""")
- assert lib.f().y == chr(40)
+ assert ord(lib.f().y) == 40
assert lib.f().x == 200
e = py.test.raises(NotImplementedError, lib.g, 0)
assert str(e.value) == (
More information about the pypy-commit
mailing list