Unverified Commit 5764efe5 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix test for file not found (#20604)

parent 720e9599
......@@ -281,7 +281,7 @@ class TFAutoModelTest(unittest.TestCase):
def test_model_file_not_found(self):
with self.assertRaisesRegex(
EnvironmentError,
"hf-internal-testing/config-no-model does not appear to have a file named tf_model.h5",
"hf-internal-testing/config-no-model does not appear to have a file named pytorch_model.bin",
):
_ = TFAutoModel.from_pretrained("hf-internal-testing/config-no-model")
......
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