summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sort.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 (GMT)
commita690a9967e715663b7a421c9ebdad91381cdf1e4 (patch)
tree1c5d9eeef0ac20efe39f1af11a81d745592596d1 /Lib/test/test_sort.py
parentd456849f19fa7b00b6560b67c5388a5a6cd89d0a (diff)
downloadcpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.zip
cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.gz
cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.bz2
* Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming.
Diffstat (limited to 'Lib/test/test_sort.py')
-rw-r--r--Lib/test/test_sort.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_sort.py b/Lib/test/test_sort.py
index 1c10230..053b338 100644
--- a/Lib/test/test_sort.py
+++ b/Lib/test/test_sort.py
@@ -1,7 +1,6 @@
from test.test_support import verbose
import random
from UserList import UserList
-from sets import Set
nerrors = 0
@@ -230,7 +229,7 @@ class TestSorted(unittest.TestCase):
self.assertEqual(list.sorted(s), list.sorted(T(s)))
s = ''.join(dict.fromkeys(s).keys()) # unique letters only
- for T in [unicode, Set, list, tuple, dict.fromkeys]:
+ for T in [unicode, set, frozenset, list, tuple, dict.fromkeys]:
self.assertEqual(list.sorted(s), list.sorted(T(s)))
def test_baddecorator(self):