[pypy-commit] pypy default: Prevent all -A tests from being skipped

rlamy pypy.commits at gmail.com
Sat Nov 9 18:23:13 EST 2019


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: 
Changeset: r98007:8330eedbb70c
Date: 2019-11-09 23:22 +0000
http://bitbucket.org/pypy/pypy/changeset/8330eedbb70c/

Log:	Prevent all -A tests from being skipped

diff --git a/pypy/conftest.py b/pypy/conftest.py
--- a/pypy/conftest.py
+++ b/pypy/conftest.py
@@ -185,7 +185,9 @@
             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
 


More information about the pypy-commit mailing list