1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[Tests] proper skipping of request caching test (#8908)

proper skipping of request caching test
This commit is contained in:
Sayak Paul
2024-07-23 04:22:57 +05:30
committed by GitHub
parent 5802c2e3f2
commit af400040f5

View File

@@ -124,11 +124,8 @@ class ModelUtilsTest(unittest.TestCase):
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: