]> granicus.if.org Git - python/commitdiff
Oops! Restored the pickle test to test_pyclbr, but changed types.py so
authorTim Peters <tim.peters@gmail.com>
Sun, 18 Jul 2004 00:08:11 +0000 (00:08 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 18 Jul 2004 00:08:11 +0000 (00:08 +0000)
that pyclbr doesn't need to special-case modules that do "from types
import *".

Lib/test/test_pyclbr.py
Lib/types.py

index 4f2d5ea60a3ac8a73e8743bf4afa4041d20b0cdb..48e8bf7d6352952849266a7a9f04249973bba20b 100644 (file)
@@ -142,6 +142,7 @@ class PyclbrTest(TestCase):
         cm('urllib', ignore=('getproxies_registry',
                              'open_https',
                              'getproxies_internetconfig',)) # not on all platforms
+        cm('pickle')
         cm('aifc', ignore=('openfp',))  # set with = in module
         cm('Cookie')
         cm('sre_parse', ignore=('dump',)) # from sre_constants import *
index 0d2905d81536c8b5ff2cf70f338f6555577ea276..39812ac3228d17f26eea573bd9093eddef512c28 100644 (file)
@@ -48,10 +48,9 @@ except RuntimeError:
     # Execution in restricted environment
     pass
 
-def g():
+def _g():
     yield 1
-GeneratorType = type(g())
-del g
+GeneratorType = type(_g())
 
 class _C:
     def _m(self): pass
@@ -87,4 +86,4 @@ EllipsisType = type(Ellipsis)
 DictProxyType = type(TypeType.__dict__)
 NotImplementedType = type(NotImplemented)
 
-del sys, _f, _C, _x                  # Not for export
+del sys, _f, _g, _C, _x                  # Not for export