Read about our upcoming Code of Conduct on this issue

Commit 6e3224a7 authored by Ronan Lamy's avatar Ronan Lamy
Browse files

Prevent all -A tests from being skipped

parent 88d8e29d0fa8
......@@ -185,7 +185,9 @@ def pytest_runtest_setup(item):
from pypy.tool.pytest.objspace import gettestobjspace
# Make cls.space and cls.runappdirect available in tests.
spaceconfig = getattr(appclass.obj, 'spaceconfig', {})
spaceconfig.setdefault('objspace.std.reinterpretasserts', True)
config = item.config
if not (config.getoption('runappdirect') or config.getoption('direct_apptest')):
spaceconfig.setdefault('objspace.std.reinterpretasserts', True)
appclass.obj.space = gettestobjspace(**spaceconfig)
appclass.obj.runappdirect = option.runappdirect
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment