diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index fbcd7fc09..9d25b85f7 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -440,8 +440,7 @@ def test_all(self): meth = getattr(self, name) try: meth(value, info) - except Exception: # noqa - raise + except Exception: s = '\n' + '=' * 70 + '\n' s += "FAIL: name=test_%s, pid=%s, ret=%s\n" % ( name, info['pid'], repr(value)) diff --git a/pyproject.toml b/pyproject.toml index 6f2aeb032..76b3bd93e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -169,7 +169,7 @@ trailing_comma_inline_array = true [tool.cibuildwheel] skip = ["*-musllinux*", "pp*"] test-command = [ - "env PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 PSUTIL_SCRIPTS_DIR={project}/scripts python {project}/psutil/tests/runner.py", + "env PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 PSUTIL_SCRIPTS_DIR={project}/scripts python {project}/psutil/tests/test_contracts.py", "env PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 PSUTIL_SCRIPTS_DIR={project}/scripts python {project}/psutil/tests/test_memleaks.py", ] test-extras = "test"