Author: Armin Rigo <[email protected]>
Branch:
Changeset: r58736:3a8541ddf11d
Date: 2012-11-05 09:37 +0100
http://bitbucket.org/pypy/pypy/changeset/3a8541ddf11d/
Log: Move the import at module level. Should fix test_thunkobjspace.
diff --git a/pypy/tool/pytest/objspace.py b/pypy/tool/pytest/objspace.py
--- a/pypy/tool/pytest/objspace.py
+++ b/pypy/tool/pytest/objspace.py
@@ -1,4 +1,5 @@
import py
+import sys
from pypy.config.config import ConflictConfigError
from pypy.tool.option import make_config, make_objspace
from pypy.tool.pytest import appsupport
@@ -48,7 +49,6 @@
class TinyObjSpace(object):
"""An object space that delegates everything to the hosting Python."""
def __init__(self, **kwds):
- import sys
info = getattr(sys, 'pypy_translation_info', None)
for key, value in kwds.iteritems():
if key == 'usemodules':
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit