[pypy-commit] pypy default: use the correct 'i', not the one leaked from the list comp (which happened to

pjenvey noreply at buildbot.pypy.org
Mon Apr 15 01:22:53 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: 
Changeset: r63355:17df5567c9a0
Date: 2013-04-14 16:22 -0700
http://bitbucket.org/pypy/pypy/changeset/17df5567c9a0/

Log:	use the correct 'i', not the one leaked from the list comp (which
	happened to be the same value)

diff --git a/pypy/objspace/std/test/test_listobject.py b/pypy/objspace/std/test/test_listobject.py
--- a/pypy/objspace/std/test/test_listobject.py
+++ b/pypy/objspace/std/test/test_listobject.py
@@ -1109,7 +1109,7 @@
                 self.i = i
             def __eq__(self, other):
                 if self.i == 9:
-                    del l[i - 1]
+                    del l[self.i - 1]
                     return True
                 else:
                     return False


More information about the pypy-commit mailing list