From 73165026fd11fff521be8b5dea19440e8f9e103e Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 20 Nov 2023 16:11:21 +0000 Subject: [PATCH] Add pragma for xfail condition --- setuptools/tests/test_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/tests/test_logging.py b/setuptools/tests/test_logging.py index 9381ab14c2..e28a050ead 100644 --- a/setuptools/tests/test_logging.py +++ b/setuptools/tests/test_logging.py @@ -45,7 +45,7 @@ def test_verbosity_level(tmp_path, monkeypatch, flag, expected_level): def _flaky_on_pypy(func): try: func() - except AssertionError: + except AssertionError: # pragma: no cover if IS_PYPY: msg = "Flaky monkeypatch on PyPy" pytest.xfail(f"{msg}. Original discussion in #3707, #3709.")