aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extra_tests')
-rw-r--r--extra_tests/conftest.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/extra_tests/conftest.py b/extra_tests/conftest.py
index fa79907f35..ee987125ff 100644
--- a/extra_tests/conftest.py
+++ b/extra_tests/conftest.py
@@ -15,3 +15,22 @@ def pytest_runtest_setup(item):
def pytest_configure(config):
config.addinivalue_line("markers", "pypy_only: PyPy-specific test")
+
+# This needs to be in the top-level conftest.py, it is copied from the one
+# in hpy_tests/_vendored See the note at
+# https://docs.pytest.org/en/7.1.x/reference/reference.html#initialization-hooks
+def pytest_addoption(parser):
+ parser.addoption(
+ "--compiler-v", action="store_true",
+ help="Print to stdout the commands used to invoke the compiler")
+ parser.addoption(
+ "--subprocess-v", action="store_true",
+ help="Print to stdout the stdout and stderr of Python subprocesses"
+ "executed via run_python_subprocess")
+
+def pytest_collection_modifyitems(config, items):
+ skip = pytest.mark.skip(reason="PyPy2.7 does not warn")
+ for item in items:
+ if item.name == "test_more_buffer_warning":
+ item.add_marker(skip)
+