From f5dc4c9d39177a3412373fbb3d196c65743073aa Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 5 Feb 2024 19:35:20 -0300 Subject: [PATCH] Ignore guard code in test --- testing/test_collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_collection.py b/testing/test_collection.py index 1d18ee75d..5cd9208f5 100644 --- a/testing/test_collection.py +++ b/testing/test_collection.py @@ -1767,7 +1767,7 @@ def test_does_not_crash_on_recursive_symlink(pytester: Pytester) -> None: def test_collect_short_file_windows(pytester: Pytester) -> None: """Reproducer for #11895: short paths not colleced on Windows.""" short_path = tempfile.mkdtemp() - if "~" not in short_path: + if "~" not in short_path: # pragma: no cover if running_on_ci(): # On CI, we are expecting that under the current GitHub actions configuration, # tempfile.mkdtemp() is producing short paths, so we want to fail to prevent