[pypy-commit] cffi python3-port: hg merge default
arigo
noreply at buildbot.pypy.org
Sun Aug 12 17:31:16 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: python3-port
Changeset: r814:5d5322739bee
Date: 2012-08-12 16:09 +0200
http://bitbucket.org/cffi/cffi/changeset/5d5322739bee/
Log: hg merge default
diff --git a/testing/backend_tests.py b/testing/backend_tests.py
--- a/testing/backend_tests.py
+++ b/testing/backend_tests.py
@@ -881,6 +881,7 @@
assert ffi.cast("enum foo", "A") != ffi.cast("enum bar", "A")
assert ffi.cast("enum bar", "A") != ffi.cast("int", 0)
assert repr(ffi.cast("enum bar", "CC")) == "<cdata 'enum bar' 'CC'>"
+ py.test.raises(ValueError, ffi.cast, "enum bar", "UNKNOWN")
def test_enum_in_struct(self):
ffi = FFI(backend=self.Backend())
More information about the pypy-commit
mailing list