mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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.test_support import run_unittest, TESTFN
|
||||
import glob
|
||||
import os
|
||||
from sets import Set
|
||||
|
||||
def mkdirs(fname):
|
||||
if os.path.exists(fname) or fname == '':
|
||||
|
@ -62,7 +61,7 @@ class GlobTests(unittest.TestCase):
|
|||
return glob.glob(p)
|
||||
|
||||
def assertSequencesEqual_noorder(self, l1, l2):
|
||||
self.assertEqual(Set(l1), Set(l2))
|
||||
self.assertEqual(set(l1), set(l2))
|
||||
|
||||
def test_glob_literal(self):
|
||||
eq = self.assertSequencesEqual_noorder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue