[pypy-svn] pypy 32ptr-on-64bit: Test and fix.
arigo
commits-noreply at bitbucket.org
Sun Apr 17 10:52:20 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: 32ptr-on-64bit
Changeset: r43421:18e3be70dc88
Date: 2011-04-17 09:27 +0200
http://bitbucket.org/pypy/pypy/changeset/18e3be70dc88/
Log: Test and fix.
diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -520,7 +520,7 @@
unerase = unerase_item
else:
erase = lambda x: x
- unerase = lambda x, t: x
+ unerase = lambda x: x
#
class subcls(BaseMapdictObject, supercls):
_nmin1 = nmin1
diff --git a/pypy/objspace/std/test/test_mapdict.py b/pypy/objspace/std/test/test_mapdict.py
--- a/pypy/objspace/std/test/test_mapdict.py
+++ b/pypy/objspace/std/test/test_mapdict.py
@@ -438,6 +438,14 @@
assert obj2.getdictvalue(space, "b") is w6
assert obj2.map is abmap
+ extras = {}
+ for attr in "cdefghijklmnopqrstuvwxyz":
+ extras[attr] = W_Root()
+ obj2.setdictvalue(space, attr, extras[attr])
+ assert obj2.getdictvalue(space, attr) is extras[attr]
+ for attr in "cdefghijklmnopqrstuvwxyz":
+ assert obj2.getdictvalue(space, attr) is extras[attr]
+
def test_specialized_class_compressptr():
test_specialized_class(compressptr=True)
More information about the Pypy-commit
mailing list