Author: Ronan Lamy <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit