[pypy-commit] pypy default: fix test_boolobject when run -A against cpython
bdkearns
noreply at buildbot.pypy.org
Thu May 8 23:08:28 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r71418:cc7e428d4ab1
Date: 2014-05-08 16:54 -0400
http://bitbucket.org/pypy/pypy/changeset/cc7e428d4ab1/
Log: fix test_boolobject when run -A against cpython
diff --git a/pypy/objspace/std/test/test_boolobject.py b/pypy/objspace/std/test/test_boolobject.py
--- a/pypy/objspace/std/test/test_boolobject.py
+++ b/pypy/objspace/std/test/test_boolobject.py
@@ -1,8 +1,4 @@
-
-
-
class TestW_BoolObject:
-
def setup_method(self,method):
self.true = self.space.w_True
self.false = self.space.w_False
@@ -29,6 +25,7 @@
def test_rbigint_w(self):
assert self.space.bigint_w(self.true)._digits == [1]
+
class AppTestAppBoolTest:
def test_bool_callable(self):
assert True == bool(1)
@@ -47,9 +44,9 @@
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
+ assert long(True) == 1L
+ assert long(False) == 0L
+ assert True.__long__() == 1L
def test_bool_ops(self):
assert True + True == 2
More information about the pypy-commit
mailing list