[pypy-issue] Issue #2254: fix test_app_main.py on pypy (pypy/pypy)

Carl Friedrich Bolz issues-reply at bitbucket.org
Fri Mar 11 16:20:33 EST 2016

New issue 2254: fix test_app_main.py on pypy

Carl Friedrich Bolz:

def we_are_translated():
    # app-level, very different from rpython.rlib.objectmodel.we_are_translated
    return hasattr(sys, 'pypy_translation_info')

in app_main.py is wrong on pypy. it means that ``test_all_combinations_I_can_think_of`` will lead to ``__pypy__.set_debug(False)`` being called, which means all subsequent tests pass always.

More information about the pypy-issue mailing list