mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
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 *".
This commit is contained in:
parent
fa7809df02
commit
264c659197
2 changed files with 4 additions and 4 deletions
|
|
@ -142,6 +142,7 @@ def test_others(self):
|
|||
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 *
|
||||
|
|
|
|||
|
|
@ -48,10 +48,9 @@ def _f(): pass
|
|||
# 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 @@ def _m(self): pass
|
|||
DictProxyType = type(TypeType.__dict__)
|
||||
NotImplementedType = type(NotImplemented)
|
||||
|
||||
del sys, _f, _C, _x # Not for export
|
||||
del sys, _f, _g, _C, _x # Not for export
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue