fix deprecation warnings (#7033)

* fix deprecation warnings

* remove tests/test_tokenization_common.py's test_padding_to_max_length

* revert test_padding_to_max_length
This commit is contained in:
Stas Bekman
2020-09-14 04:51:19 -07:00
committed by GitHub
parent 576eec98e0
commit 4d39148419
3 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ class TokenizerTesterMixin:
tokenizers = self.get_tokenizers()
for tokenizer in tokenizers:
with self.subTest(f"{tokenizer.__class__.__name__}"):
self.assertNotEqual(tokenizer.max_len, 42)
self.assertNotEqual(tokenizer.model_max_length, 42)
# Now let's start the test
tokenizers = self.get_tokenizers()