Commit a3de56da authored by Tim Peters's avatar Tim Peters

Oops! Restored the pickle test to test_pyclbr, but changed types.py so

that pyclbr doesn't need to special-case modules that do "from types
import *".
parent 1c26e7e4
...@@ -142,6 +142,7 @@ class PyclbrTest(TestCase): ...@@ -142,6 +142,7 @@ class PyclbrTest(TestCase):
cm('urllib', ignore=('getproxies_registry', cm('urllib', ignore=('getproxies_registry',
'open_https', 'open_https',
'getproxies_internetconfig',)) # not on all platforms 'getproxies_internetconfig',)) # not on all platforms
cm('pickle')
cm('aifc', ignore=('openfp',)) # set with = in module cm('aifc', ignore=('openfp',)) # set with = in module
cm('Cookie') cm('Cookie')
cm('sre_parse', ignore=('dump',)) # from sre_constants import * cm('sre_parse', ignore=('dump',)) # from sre_constants import *
......
...@@ -48,10 +48,9 @@ except RuntimeError: ...@@ -48,10 +48,9 @@ except RuntimeError:
# Execution in restricted environment # Execution in restricted environment
pass pass
def g(): def _g():
yield 1 yield 1
GeneratorType = type(g()) GeneratorType = type(_g())
del g
class _C: class _C:
def _m(self): pass def _m(self): pass
...@@ -87,4 +86,4 @@ EllipsisType = type(Ellipsis) ...@@ -87,4 +86,4 @@ EllipsisType = type(Ellipsis)
DictProxyType = type(TypeType.__dict__) DictProxyType = type(TypeType.__dict__)
NotImplementedType = type(NotImplemented) NotImplementedType = type(NotImplemented)
del sys, _f, _C, _x # Not for export del sys, _f, _g, _C, _x # Not for export
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment