diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py index 3efd2b1d7..a25ccc624 100644 --- a/src/_pytest/pathlib.py +++ b/src/_pytest/pathlib.py @@ -172,7 +172,7 @@ def rm_rf(path: Path) -> None: def find_prefixed(root: Path, prefix: str) -> Iterator["os.DirEntry[str]"]: - """Find all elements in root that begin with the prefix, case insensitive.""" + """Find all elements in root that begin with the prefix, case-insensitive.""" l_prefix = prefix.lower() for x in os.scandir(root): if x.name.lower().startswith(l_prefix): diff --git a/testing/_py/test_local.py b/testing/_py/test_local.py index ad2526571..609a29d47 100644 --- a/testing/_py/test_local.py +++ b/testing/_py/test_local.py @@ -667,7 +667,7 @@ class TestLocalPath(CommonFSTests): assert p == os.path.expanduser("~") @pytest.mark.skipif( - not sys.platform.startswith("win32"), reason="case insensitive only on windows" + not sys.platform.startswith("win32"), reason="case-insensitive only on windows" ) def test_eq_hash_are_case_insensitive_on_windows(self): a = local("/some/path") diff --git a/testing/test_conftest.py b/testing/test_conftest.py index 3116dfe25..441446d58 100644 --- a/testing/test_conftest.py +++ b/testing/test_conftest.py @@ -396,7 +396,7 @@ def test_conftest_symlink_files(pytester: Pytester) -> None: @pytest.mark.skipif( os.path.normcase("x") != os.path.normcase("X"), - reason="only relevant for case insensitive file systems", + reason="only relevant for case-insensitive file systems", ) def test_conftest_badcase(pytester: Pytester) -> None: """Check conftest.py loading when directory casing is wrong (#5792)."""