Swap the key check and use casefold in the test, as suggested in review

This commit is contained in:
dualfroz committed 2026-10-08 11:39:06 +02:00
1 parent 8780c614af
commit dce315d944
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -5160,7 +5160,7 @@ class AllUniqueTests(TestCase):
return False
def __call__(self, x):
return x.lower()
return x.casefold()
key = CaseFold()
self.assertFalse(key) # Sanity: the key itself is falsey