1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed 7071823

A failing test.

  • Participants
  • Parent commits 1ef5ed3
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/test_lib_pypy/ctypes_tests/test_cast.py

View file
     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