Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to