mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue