[pypy-commit] pypy default: Update to cffi/92bdeb9ef3e2
arigo
noreply at buildbot.pypy.org
Fri Nov 30 06:36:29 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r59149:93a2f6b9dcd0
Date: 2012-11-29 21:36 -0800
http://bitbucket.org/pypy/pypy/changeset/93a2f6b9dcd0/
Log: Update to cffi/92bdeb9ef3e2
diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py b/pypy/module/_cffi_backend/test/_backend_test_c.py
--- a/pypy/module/_cffi_backend/test/_backend_test_c.py
+++ b/pypy/module/_cffi_backend/test/_backend_test_c.py
@@ -1250,6 +1250,9 @@
BEnum = new_enum_type("foo", ('def', 'c', 'ab'), (0, 1, -20))
assert BEnum.kind == "enum"
assert BEnum.elements == {-20: 'ab', 0: 'def', 1: 'c'}
+ # 'elements' is not the real dict, but merely a copy
+ BEnum.elements[2] = '??'
+ assert BEnum.elements == {-20: 'ab', 0: 'def', 1: 'c'}
def test_cast_to_enum():
BEnum = new_enum_type("foo", ('def', 'c', 'ab'), (0, 1, -20))
More information about the pypy-commit
mailing list