Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r45368:1fc3e8202f32
Date: 2011-07-06 10:34 -0700
http://bitbucket.org/pypy/pypy/changeset/1fc3e8202f32/
Log: Make an editable copy of test_sets and change it to not assume that
immutable object identity is guarnteed.
diff --git a/lib-python/2.7/test/test_sets.py
b/lib-python/modified-2.7/test/test_sets.py
copy from lib-python/2.7/test/test_sets.py
copy to lib-python/modified-2.7/test/test_sets.py
--- a/lib-python/2.7/test/test_sets.py
+++ b/lib-python/modified-2.7/test/test_sets.py
@@ -686,7 +686,9 @@
set_list = sorted(self.set)
self.assertEqual(len(dup_list), len(set_list))
for i, el in enumerate(dup_list):
- self.assertIs(el, set_list[i])
+ # Object identity is not guarnteed for immutable objects, so we
+ # can't use assertIs here.
+ self.assertEqual(el, set_list[i])
def test_deep_copy(self):
dup = copy.deepcopy(self.set)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit