diff options
author | Raymond Hettinger <python@rcn.com> | 2003-11-16 16:17:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-11-16 16:17:49 (GMT) |
commit | a690a9967e715663b7a421c9ebdad91381cdf1e4 (patch) | |
tree | 1c5d9eeef0ac20efe39f1af11a81d745592596d1 /Lib/test/test_userdict.py | |
parent | d456849f19fa7b00b6560b67c5388a5a6cd89d0a (diff) | |
download | cpython-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_userdict.py')
-rw-r--r-- | Lib/test/test_userdict.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py index 399ddda..602fd90 100644 --- a/Lib/test/test_userdict.py +++ b/Lib/test/test_userdict.py @@ -1,8 +1,6 @@ # Check every path through every method of UserDict import test.test_support, unittest -from sets import Set - import UserDict class TestMappingProtocol(unittest.TestCase): @@ -69,7 +67,7 @@ class TestMappingProtocol(unittest.TestCase): self.assert_(hasattr(iter, 'next')) self.assert_(hasattr(iter, '__iter__')) x = list(iter) - self.assert_(Set(x)==Set(lst)==Set(ref)) + self.assert_(set(x)==set(lst)==set(ref)) check_iterandlist(d.iterkeys(), d.keys(), self.reference.keys()) check_iterandlist(iter(d), d.keys(), self.reference.keys()) check_iterandlist(d.itervalues(), d.values(), self.reference.values()) @@ -242,7 +240,7 @@ class UserDictTest(TestMappingProtocol): for k in u2: ikeys.append(k) keys = u2.keys() - self.assertEqual(Set(ikeys), Set(keys)) + self.assertEqual(set(ikeys), set(keys)) # Test setdefault t = UserDict.UserDict() |