From 454786de7ab8d739fcfbf429314cbe3b3416b2c7 Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Fri, 19 Jul 2024 16:48:56 +0530 Subject: [PATCH] proper skipping of request caching test --- tests/models/test_modeling_common.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/models/test_modeling_common.py b/tests/models/test_modeling_common.py index 034c7434a2d5..bc8416e0888a 100644 --- a/tests/models/test_modeling_common.py +++ b/tests/models/test_modeling_common.py @@ -124,11 +124,8 @@ def test_cached_files_are_used_when_no_internet(self): if p1.data.ne(p2.data).sum() > 0: assert False, "Parameters not the same!" + @unittest.skipIf(torch_device == "mps", reason="Test not supported for MPS.") def test_one_request_upon_cached(self): - # TODO: For some reason this test fails on MPS where no HEAD call is made. - if torch_device == "mps": - return - use_safetensors = False with tempfile.TemporaryDirectory() as tmpdirname: