[pypy-commit] pypy default: test speed optimization for set.update when updating a set of obejcts with another set containing objects
l.diekmann
noreply at buildbot.pypy.org
Wed Jun 20 12:16:50 CEST 2012
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch:
Changeset: r55722:9f7e8c8ce987
Date: 2012-06-20 12:16 +0200
http://bitbucket.org/pypy/pypy/changeset/9f7e8c8ce987/
Log: test speed optimization for set.update when updating a set of
obejcts with another set containing objects
diff --git a/pypy/objspace/std/test/test_setobject.py b/pypy/objspace/std/test/test_setobject.py
--- a/pypy/objspace/std/test/test_setobject.py
+++ b/pypy/objspace/std/test/test_setobject.py
@@ -425,6 +425,8 @@
s1 = set()
s1.update(set('abcd'))
assert s1 == set('abcd')
+ s1 = set([1, 2.0, "3"])
+ s1.update(set(["3", 4, 5.0]))
def test_recursive_repr(self):
class A(object):
More information about the pypy-commit
mailing list