Skip to content

Commit 6cacb4b

Browse files
committed
Ignore guard code in test
1 parent 0120b80 commit 6cacb4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_collection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ def test_foo(): assert True
17501750
def test_collect_short_file_windows(pytester: Pytester) -> None:
17511751
"""Reproducer for #11895: short paths not colleced on Windows."""
17521752
short_path = tempfile.mkdtemp()
1753-
if "~" not in short_path:
1753+
if "~" not in short_path: # pragma: no cover
17541754
if running_on_ci():
17551755
# On CI, we are expecting that under the current GitHub actions configuration,
17561756
# tempfile.mkdtemp() is producing short paths, so we want to fail to prevent

0 commit comments

Comments
 (0)