There was an error while loading. Please reload this page.
1 parent fa7809d commit 264c659Copy full SHA for 264c659
2 files changed
Lib/test/test_pyclbr.py
@@ -142,6 +142,7 @@ def test_others(self):
142
cm('urllib', ignore=('getproxies_registry',
143
'open_https',
144
'getproxies_internetconfig',)) # not on all platforms
145
+ cm('pickle')
146
cm('aifc', ignore=('openfp',)) # set with = in module
147
cm('Cookie')
148
cm('sre_parse', ignore=('dump',)) # from sre_constants import *
Lib/types.py
@@ -48,10 +48,9 @@ def _f(): pass
48
# Execution in restricted environment
49
pass
50
51
-def g():
+def _g():
52
yield 1
53
-GeneratorType = type(g())
54
-del g
+GeneratorType = type(_g())
55
56
class _C:
57
def _m(self): pass
@@ -87,4 +86,4 @@ def _m(self): pass
87
86
DictProxyType = type(TypeType.__dict__)
88
NotImplementedType = type(NotImplemented)
89
90
-del sys, _f, _C, _x # Not for export
+del sys, _f, _g, _C, _x # Not for export
0 commit comments