Skip to content

Commit c1a7c92

Browse files
a-r-r-o-wsayakpaul
authored andcommitted
[tests] remove nullop import checks from lora tests (#10273)
remove nullop imports
1 parent a9c761f commit c1a7c92

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

tests/lora/test_lora_layers_cogvideox.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,13 @@
2929
)
3030
from diffusers.utils.testing_utils import (
3131
floats_tensor,
32-
is_peft_available,
3332
is_torch_version,
3433
require_peft_backend,
3534
skip_mps,
3635
torch_device,
3736
)
3837

3938

40-
if is_peft_available():
41-
pass
42-
4339
sys.path.append(".")
4440

4541
from utils import PeftLoraLoaderMixinTests, check_if_lora_correctly_set # noqa: E402

tests/lora/test_lora_layers_mochi.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@
2323
from diffusers import AutoencoderKLMochi, FlowMatchEulerDiscreteScheduler, MochiPipeline, MochiTransformer3DModel
2424
from diffusers.utils.testing_utils import (
2525
floats_tensor,
26-
is_peft_available,
2726
is_torch_version,
2827
require_peft_backend,
2928
skip_mps,
3029
torch_device,
3130
)
3231

3332

34-
if is_peft_available():
35-
pass
36-
3733
sys.path.append(".")
3834

3935
from utils import PeftLoraLoaderMixinTests, check_if_lora_correctly_set # noqa: E402

tests/lora/test_lora_layers_sd3.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,13 @@
2929
from diffusers.utils import load_image
3030
from diffusers.utils.import_utils import is_accelerate_available
3131
from diffusers.utils.testing_utils import (
32-
is_peft_available,
3332
numpy_cosine_similarity_distance,
3433
require_peft_backend,
3534
require_torch_gpu,
3635
torch_device,
3736
)
3837

3938

40-
if is_peft_available():
41-
pass
42-
4339
sys.path.append(".")
4440

4541
from utils import PeftLoraLoaderMixinTests # noqa: E402

0 commit comments

Comments
 (0)