spelling: case-insensitive
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
d414d4f41b
commit
a0b1f52a1d
|
@ -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):
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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)."""
|
||||
|
|
Loading…
Reference in New Issue