aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-11-14 10:23:33 +0200
committerMatti Picus <matti.picus@gmail.com>2022-11-14 10:23:33 +0200
commite94eecf30b821970bb4c023a908982d0a682ed8e (patch)
tree35cadb53e04343f9064124574e28ab3c62794819 /extra_tests
parentskip _cffi_beckend ztranslation, requires too much emulation (diff)
downloadpypy-e94eecf30b821970bb4c023a908982d0a682ed8e.tar.gz
pypy-e94eecf30b821970bb4c023a908982d0a682ed8e.tar.bz2
pypy-e94eecf30b821970bb4c023a908982d0a682ed8e.zip
skip corner case test that is too hard for PyPy to get right
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)
+