mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
* 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.
This commit is contained in:
parent
d456849f19
commit
a690a9967e
21 changed files with 2338 additions and 40 deletions
|
@ -2,7 +2,6 @@ import unittest
|
|||
from test import test_support
|
||||
|
||||
from test.test_support import verify, verbose
|
||||
from sets import Set
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
|
@ -43,8 +42,8 @@ class AllTest(unittest.TestCase):
|
|||
exec "from %s import *" % modname in names
|
||||
if names.has_key("__builtins__"):
|
||||
del names["__builtins__"]
|
||||
keys = Set(names)
|
||||
all = Set(sys.modules[modname].__all__)
|
||||
keys = set(names)
|
||||
all = set(sys.modules[modname].__all__)
|
||||
verify(keys==all, "%s != %s" % (keys, all))
|
||||
|
||||
def test_all(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue