From 9b4b0c07db0d9f962bc476e59148f263d1035264 Mon Sep 17 00:00:00 2001 From: Arthur <48595927+ArthurZucker@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:56:24 +0200 Subject: [PATCH] [`Red CIs`] Fix hub failures (#34001) maybe setup should work? --- tests/models/myt5/test_tokenization_myt5.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/models/myt5/test_tokenization_myt5.py b/tests/models/myt5/test_tokenization_myt5.py index 49e765ee3e..36e10ac36d 100644 --- a/tests/models/myt5/test_tokenization_myt5.py +++ b/tests/models/myt5/test_tokenization_myt5.py @@ -38,7 +38,8 @@ def str_to_hex(line: str, sep: str = " ") -> str: class TestByteRewriter(unittest.TestCase): - tokenizer = MyT5Tokenizer.from_pretrained("Tomlim/myt5-base") + def setUp(self) -> None: + self.tokenizer = MyT5Tokenizer.from_pretrained("Tomlim/myt5-base") def test_simple_decompose(self): decompose_rewriter = self.tokenizer.decompose_rewriter