[pypy-svn] r48275 - pypy/dist/pypy/translator/goal

tismer at codespeak.net tismer at codespeak.net
Sat Nov 3 19:15:58 CET 2007


Author: tismer
Date: Sat Nov  3 19:15:58 2007
New Revision: 48275

Modified:
   pypy/dist/pypy/translator/goal/app_main.py
Log:
some of the test cases see to have trouble with imports. 
"from pypy.rlib.objectmodel import we_are_translated"
caused test_options_u_PYTHONINSPECT to fail.

Modified: pypy/dist/pypy/translator/goal/app_main.py
==============================================================================
--- pypy/dist/pypy/translator/goal/app_main.py	(original)
+++ pypy/dist/pypy/translator/goal/app_main.py	Sat Nov  3 19:15:58 2007
@@ -188,7 +188,11 @@
 modules changeable, again.
 """
 
-from pypy.rlib.objectmodel import we_are_translated
+try:
+    # for some reason, some tests break with this import
+    from pypy.rlib.objectmodel import we_are_translated
+except ImportError:
+    we_are_translated = False
 
 class fake_os:
     def __init__(self):



More information about the Pypy-commit mailing list