Skip to content

Commit 4c723d8

Browse files
authored
[CI] xfail the test_wuerstchen_prior test (huggingface#12530)
xfail the test_wuerstchen_prior test
1 parent bec2d8e commit 4c723d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/pipelines/stable_cascade/test_stable_cascade_prior.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
import unittest
1818

1919
import numpy as np
20+
import pytest
2021
import torch
2122
from transformers import CLIPTextConfig, CLIPTextModelWithProjection, CLIPTokenizer
2223

2324
from diffusers import DDPMWuerstchenScheduler, StableCascadePriorPipeline
2425
from diffusers.models import StableCascadeUNet
26+
from diffusers.utils import is_transformers_version
2527
from diffusers.utils.import_utils import is_peft_available
2628

2729
from ...testing_utils import (
@@ -154,6 +156,11 @@ def get_dummy_inputs(self, device, seed=0):
154156
}
155157
return inputs
156158

159+
@pytest.mark.xfail(
160+
condition=is_transformers_version(">=", "4.57.1"),
161+
reason="Test fails with the latest transformers version",
162+
strict=False,
163+
)
157164
def test_wuerstchen_prior(self):
158165
device = "cpu"
159166

0 commit comments

Comments
 (0)