"tests/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "a8a9b2e55124074ef0e75690c8c30a126bb409c3"
Unverified Commit 9999b739 authored by amyeroberts's avatar amyeroberts Committed by GitHub
Browse files

Skip failing cache call tests (#27393)

* Skip failing cache call tests

* Fixup
parent bc086a25
...@@ -482,6 +482,9 @@ class AutoModelTest(unittest.TestCase): ...@@ -482,6 +482,9 @@ class AutoModelTest(unittest.TestCase):
with self.assertRaisesRegex(EnvironmentError, "Use `from_flax=True` to load this model"): with self.assertRaisesRegex(EnvironmentError, "Use `from_flax=True` to load this model"):
_ = AutoModel.from_pretrained("hf-internal-testing/tiny-bert-flax-only") _ = AutoModel.from_pretrained("hf-internal-testing/tiny-bert-flax-only")
@unittest.skip(
"Currently failing with new huggingface_hub release. See: https://github.com/huggingface/transformers/pull/27389"
)
def test_cached_model_has_minimum_calls_to_head(self): def test_cached_model_has_minimum_calls_to_head(self):
# Make sure we have cached the model. # Make sure we have cached the model.
_ = AutoModel.from_pretrained("hf-internal-testing/tiny-random-bert") _ = AutoModel.from_pretrained("hf-internal-testing/tiny-random-bert")
......
...@@ -419,6 +419,9 @@ class AutoTokenizerTest(unittest.TestCase): ...@@ -419,6 +419,9 @@ class AutoTokenizerTest(unittest.TestCase):
): ):
_ = AutoTokenizer.from_pretrained(DUMMY_UNKNOWN_IDENTIFIER, revision="aaaaaa") _ = AutoTokenizer.from_pretrained(DUMMY_UNKNOWN_IDENTIFIER, revision="aaaaaa")
@unittest.skip(
"Currently failing with new huggingface_hub release. See: https://github.com/huggingface/transformers/pull/27389"
)
def test_cached_tokenizer_has_minimum_calls_to_head(self): def test_cached_tokenizer_has_minimum_calls_to_head(self):
# Make sure we have cached the tokenizer. # Make sure we have cached the tokenizer.
_ = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-bert") _ = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-bert")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment