Author: Richard Plangger <r...@pasra.at> Branch: vecopt-merge Changeset: r78884:18e7a066f96f Date: 2015-08-11 12:24 +0200 http://bitbucket.org/pypy/pypy/changeset/18e7a066f96f/
Log: Backed out changeset 9299faf9cad1 diff --git a/pypy/objspace/std/boolobject.py b/pypy/objspace/std/boolobject.py --- a/pypy/objspace/std/boolobject.py +++ b/pypy/objspace/std/boolobject.py @@ -13,7 +13,7 @@ class W_BoolObject(W_IntObject): def __init__(self, boolval): - self.intval = int(not not boolval) + self.intval = not not boolval def __nonzero__(self): raise Exception("you cannot do that, you must use space.is_true()") 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 @@ -4,10 +4,6 @@ self.false = self.space.w_False self.wrap = self.space.wrap - def test_init(self): - assert (self.false.intval, type(self.false.intval)) == (0, int) - assert (self.true.intval, type(self.true.intval)) == (1, int) - def test_repr(self): assert self.space.eq_w(self.space.repr(self.true), self.wrap("True")) assert self.space.eq_w(self.space.repr(self.false), self.wrap("False")) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit