Commits

Philip Jenvey committed 4ca6d9f

test bool to longs

Comments (0)

Files changed (1)

pypy/objspace/std/test/test_boolobject.py

     def test_bool_int(self):
         assert int(True) is 1
         assert int(False) is 0
+        # XXX: broken
+        #assert True.__int__() is 1
+
+    def test_bool_long(self):
+        assert long(True) is 1L
+        assert long(False) is 0L
+        assert True.__long__() is 1L
 
     def test_bool_ops(self):
         assert True + True == 2