[pypy-commit] pypy list-strategies: half the time
cfbolz
noreply at buildbot.pypy.org
Thu Sep 29 14:36:25 CEST 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: list-strategies
Changeset: r47679:5d5218bab720
Date: 2011-09-29 14:34 +0200
http://bitbucket.org/pypy/pypy/changeset/5d5218bab720/
Log: half the time
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
@@ -182,8 +182,8 @@
l.append(s)
l.append(self.unwrap_wrap_unicode(s))
- for a in l:
- for b in l:
+ for i, a in enumerate(l):
+ for b in l[i:]:
assert (a is b) == (id(a) == id(b))
if a is b:
assert a == b
More information about the pypy-commit
mailing list