Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76281:537301906e33
Date: 2015-03-08 19:32 +0100
http://bitbucket.org/pypy/pypy/changeset/537301906e33/
Log: Add another hack around the hack of the global dictionary, for
test_ztranslation
diff --git a/pypy/module/_ssl/__init__.py b/pypy/module/_ssl/__init__.py
--- a/pypy/module/_ssl/__init__.py
+++ b/pypy/module/_ssl/__init__.py
@@ -51,6 +51,11 @@
super(Module, cls).buildloaders()
+ def setup_after_space_initialization(self):
+ """NOT_RPYTHON"""
+ from pypy.module._ssl.interp_ssl import PWINFO_STORAGE
+ PWINFO_STORAGE.clear()
+
def startup(self, space):
from rpython.rlib.ropenssl import init_ssl
init_ssl()
diff --git a/pypy/objspace/fake/checkmodule.py
b/pypy/objspace/fake/checkmodule.py
--- a/pypy/objspace/fake/checkmodule.py
+++ b/pypy/objspace/fake/checkmodule.py
@@ -10,6 +10,7 @@
mod = __import__('pypy.module.%s' % modname, None, None, ['__doc__'])
# force computation and record what we wrap
module = mod.Module(space, W_Root())
+ module.setup_after_space_initialization()
module.startup(space)
for name in module.loaders:
seeobj_w.append(module._load_lazily(space, name))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit