Answer stability round 1: 0 🔴, 1 🟡 (0 misread); list conftest.py in the help

This commit is contained in:
2026-11-27 22:58:51 +01:00
parent 58cc12b979
commit 3d49cfce40
4 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ def keep_rust_tests(planted_file: str, target: str) -> None:
def of_tests(path: str, rust_tests: typing.AbstractSet[str] = frozenset()) -> bool:
"""Whether path is a test by its path alone, as `is_test_file` tells it, or one of rust_tests."""
"""Whether path is a test by its path alone, or one of rust_tests."""
return is_test_file(path) or "testdata" in pathlib.PurePath(path).parts or path in rust_tests