[pypy-commit] pypy default: Fix test

arigo pypy.commits at gmail.com
Mon Sep 26 02:50:31 EDT 2016


Author: Armin Rigo <arigo at 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)


More information about the pypy-commit mailing list