chore: ensure test names differ by more than just case (#12729)

These tests may lead to issues on case insensitive file systems.
This commit is contained in:
Garmelon 2026-02-27 20:03:22 +01:00 committed by GitHub
parent 2e9e5db408
commit 36ffba4b57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -190,5 +190,16 @@ for file in Path().glob("**/run_bench"):
nag("has env_test.sh", file)
# File confusion by case insensitive filesystems,
# applies to entire repository
seen: set[str] = set()
for file in Path("..").glob("**/*"):
path = str(file).lower()
if path in seen:
nag("case sensitive", file)
seen.add(path)
if ERROR:
sys.exit(1)