diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-03 08:54:36 +0000 |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-03 08:54:36 +0000 |
| commit | 85bcb6ad5e110df10cd70d0fb61fe53c5a3ad3ad (patch) | |
| tree | 410751103a7107a47e6c2c7514ab64ae825a2ba2 | |
| parent | 8aaab4b22a5b631a47fafe841b8403d7103783d8 (diff) | |
| download | cpython-85bcb6ad5e110df10cd70d0fb61fe53c5a3ad3ad.tar.gz | |
Fix deprecation warnings in test_sets.py
| -rw-r--r-- | Lib/test/test_sets.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index 53c30beab9..9905d1349c 100644 --- a/Lib/test/test_sets.py +++ b/Lib/test/test_sets.py @@ -691,8 +691,9 @@ class TestCopying(unittest.TestCase): 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]) |
