[pypy-commit] pypy SpecialisedTuples: Test and fix.
arigo
noreply at buildbot.pypy.org
Thu Dec 8 18:06:27 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: SpecialisedTuples
Changeset: r50314:f0cc6a3ff8e9
Date: 2011-12-08 18:06 +0100
http://bitbucket.org/pypy/pypy/changeset/f0cc6a3ff8e9/
Log: Test and fix.
diff --git a/pypy/objspace/std/specialisedtupleobject.py b/pypy/objspace/std/specialisedtupleobject.py
--- a/pypy/objspace/std/specialisedtupleobject.py
+++ b/pypy/objspace/std/specialisedtupleobject.py
@@ -98,7 +98,7 @@
# XXX duplicate logic from tupleobject.py
mult = 1000003
x = 0x345678
- z = 2
+ z = nValues
for i in iter_n:
value = getattr(self, 'value%s' % i)
if typetuple[i] == object:
diff --git a/pypy/objspace/std/test/test_specialisedtupleobject.py b/pypy/objspace/std/test/test_specialisedtupleobject.py
--- a/pypy/objspace/std/test/test_specialisedtupleobject.py
+++ b/pypy/objspace/std/test/test_specialisedtupleobject.py
@@ -53,6 +53,7 @@
hash_test([1,(1,2)])
hash_test([1,('a',2)])
hash_test([1,()])
+ hash_test([1,2,3])
class AppTestW_SpecialisedTupleObject:
More information about the pypy-commit
mailing list