[pypy-commit] pypy release-5.x: backout c7cc35224c29 - tests for 666871b885d9
mattip
pypy.commits at gmail.com
Mon Mar 7 13:06:23 EST 2016
Author: mattip <matti.picus at gmail.com>
Branch: release-5.x
Changeset: r82857:71586f7de6b0
Date: 2016-03-07 19:53 +0200
http://bitbucket.org/pypy/pypy/changeset/71586f7de6b0/
Log: backout c7cc35224c29 - tests for 666871b885d9
diff --git a/pypy/objspace/std/test/test_obj.py b/pypy/objspace/std/test/test_obj.py
--- a/pypy/objspace/std/test/test_obj.py
+++ b/pypy/objspace/std/test/test_obj.py
@@ -172,15 +172,15 @@
def test_id_on_primitives(self):
if self.cpython_apptest:
skip("cpython behaves differently")
- assert id(1) == (1 << 4) + 1
- assert id(1l) == (1 << 4) + 3
+ assert id(1) == (1 << 3) + 1
+ assert id(1l) == (1 << 3) + 3
class myint(int):
pass
assert id(myint(1)) != id(1)
assert id(1.0) & 7 == 5
assert id(-0.0) != id(0.0)
- assert hex(id(2.0)) == '0x40000000000000005L'
+ assert hex(id(2.0)) == '0x20000000000000005L'
assert id(0.0) == 5
def test_id_on_strs(self):
More information about the pypy-commit
mailing list