Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r87386:7472cf9b0cd7
Date: 2016-09-26 08:49 +0200
http://bitbucket.org/pypy/pypy/changeset/7472cf9b0cd7/

Log:    Fix test

diff --git a/pypy/interpreter/test/test_app_main.py 
b/pypy/interpreter/test/test_app_main.py
--- a/pypy/interpreter/test/test_app_main.py
+++ b/pypy/interpreter/test/test_app_main.py
@@ -1030,8 +1030,8 @@
             # If we are running PyPy with a libpypy-c, the following
             # lines find the stdlib anyway.  Otherwise, it is not found.
             expected_found = (
-                '__pypy__' in sys.builtin_module_names and
-                sys.pypy_translation_info['translation.shared'])
+                getattr(sys, 'pypy_translation_info', {})
+                .get('translation.shared'))
 
             import app_main
             app_main.setup_bootstrap_path(tmp_pypy_c)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to