[pypy-commit] pypy default: A failing test.

arigo noreply at buildbot.pypy.org
Fri Jun 15 17:52:52 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r55687:707182353e1b
Date: 2012-06-15 17:52 +0200
http://bitbucket.org/pypy/pypy/changeset/707182353e1b/

Log:	A failing test.

diff --git a/pypy/module/test_lib_pypy/ctypes_tests/test_cast.py b/pypy/module/test_lib_pypy/ctypes_tests/test_cast.py
--- a/pypy/module/test_lib_pypy/ctypes_tests/test_cast.py
+++ b/pypy/module/test_lib_pypy/ctypes_tests/test_cast.py
@@ -94,4 +94,9 @@
     def test_cast_argumenterror(self):
         param = c_uint(42)
         py.test.raises(ArgumentError, "cast(param, c_void_p)")
-        
+
+    def test_c_bool(self):
+        x = c_bool(42)
+        assert x.value is True
+        x = c_bool(0.0)
+        assert x.value is False


More information about the pypy-commit mailing list