Swap the key check and use casefold in the test, as suggested in review
This commit is contained in:
1 parent
8780c614af
commit
dce315d944
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user