Black preview (#17217)
* Black preview * Fixup too! * Fix check copies * Use the same version as the CI * Bump black
This commit is contained in:
@@ -1543,11 +1543,9 @@ class LayoutXLMTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
break
|
||||
self.assertTrue(
|
||||
find,
|
||||
(
|
||||
f"'{new_special_token_str}' doesn't appear in the list "
|
||||
f"'{new_tokenizer.all_special_tokens_extended}' as an AddedToken with the same parameters as "
|
||||
f"'{special_token}' in the list {tokenizer.all_special_tokens_extended}"
|
||||
),
|
||||
f"'{new_special_token_str}' doesn't appear in the list "
|
||||
f"'{new_tokenizer.all_special_tokens_extended}' as an AddedToken with the same parameters as "
|
||||
f"'{special_token}' in the list {tokenizer.all_special_tokens_extended}",
|
||||
)
|
||||
elif special_token not in special_tokens_map:
|
||||
# The special token must appear identically in the list of the new tokenizer.
|
||||
|
||||
Reference in New Issue
Block a user