[pypy-commit] pypy ec-threadlocal: Fix checkmodule()

arigo noreply at buildbot.pypy.org
Mon Jun 23 19:26:09 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: ec-threadlocal
Changeset: r72166:a34550fc5717
Date: 2014-06-23 19:25 +0200
http://bitbucket.org/pypy/pypy/changeset/a34550fc5717/

Log:	Fix checkmodule()

diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -314,6 +314,9 @@
         t = TranslationContext(config=config)
         self.t = t     # for debugging
         ann = t.buildannotator()
+        def _do_startup():
+            self.threadlocals.enter_thread(self)
+        ann.build_types(_do_startup, [], complete_now=False)
         if func is not None:
             ann.build_types(func, argtypes, complete_now=False)
         if seeobj_w:


More information about the pypy-commit mailing list