mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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
|
@ -4,7 +4,6 @@ import UserList
|
|||
import weakref
|
||||
|
||||
from test import test_support
|
||||
from sets import Set
|
||||
|
||||
|
||||
class C:
|
||||
|
@ -392,7 +391,7 @@ class MappingTestCase(TestBase):
|
|||
"wrong object returned by weak dict!")
|
||||
items1 = dict.items()
|
||||
items2 = dict.copy().items()
|
||||
self.assert_(Set(items1) == Set(items2),
|
||||
self.assert_(set(items1) == set(items2),
|
||||
"cloning of weak-keyed dictionary did not work!")
|
||||
del items1, items2
|
||||
self.assert_(len(dict) == self.COUNT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue