[Python-checkins] r83656 - python/branches/release26-maint/Lib/test/test_sets.py
ezio.melotti
python-checkins at python.org
Tue Aug 3 10:54:36 CEST 2010
Author: ezio.melotti
Date: Tue Aug 3 10:54:36 2010
New Revision: 83656
Log:
Fix deprecation warnings in test_sets.py
Modified:
python/branches/release26-maint/Lib/test/test_sets.py
Modified: python/branches/release26-maint/Lib/test/test_sets.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_sets.py (original)
+++ python/branches/release26-maint/Lib/test/test_sets.py Tue Aug 3 10:54:36 2010
@@ -691,8 +691,9 @@
def test_deep_copy(self):
dup = copy.deepcopy(self.set)
##print type(dup), repr(dup)
- dup_list = list(dup); dup_list.sort()
- set_list = list(self.set); set_list.sort()
+ with test_support.check_warnings():
+ dup_list = sorted(dup)
+ set_list = sorted(self.set)
self.assertEqual(len(dup_list), len(set_list))
for i in range(len(dup_list)):
self.assertEqual(dup_list[i], set_list[i])
More information about the Python-checkins
mailing list