summaryrefslogtreecommitdiff
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 +0000
committerRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 +0000
commita690a9967e715663b7a421c9ebdad91381cdf1e4 (patch)
tree1c5d9eeef0ac20efe39f1af11a81d745592596d1 /Lib/test/test_builtin.py
parentd456849f19fa7b00b6560b67c5388a5a6cd89d0a (diff)
downloadcpython-git-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.gz
* 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_builtin.py')
-rw-r--r--Lib/test/test_builtin.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index e84cfbd50e..d47a9da82a 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -2,7 +2,6 @@
import test.test_support, unittest
from test.test_support import fcmp, have_unicode, TESTFN, unlink
-from sets import Set
import sys, warnings, cStringIO
warnings.filterwarnings("ignore", "hex../oct.. of negative int",
@@ -1104,9 +1103,9 @@ class BuiltinTest(unittest.TestCase):
get_vars_f2 = staticmethod(get_vars_f2)
def test_vars(self):
- self.assertEqual(Set(vars()), Set(dir()))
+ self.assertEqual(set(vars()), set(dir()))
import sys
- self.assertEqual(Set(vars(sys)), Set(dir(sys)))
+ self.assertEqual(set(vars(sys)), set(dir(sys)))
self.assertEqual(self.get_vars_f0(), {})
self.assertEqual(self.get_vars_f2(), {'a': 1, 'b': 2})
self.assertRaises(TypeError, vars, 42, 42)