Skip to content

Commit 62ab236

Browse files
committed
address import nits
1 parent 5c81ccb commit 62ab236

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/models/test_modeling_common.py

-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ class ModelUtilsTest(unittest.TestCase):
6060
def tearDown(self):
6161
super().tearDown()
6262

63-
import diffusers
64-
65-
diffusers.utils.import_utils._safetensors_available = True
66-
6763
def test_accelerate_loading_error_message(self):
6864
with self.assertRaises(ValueError) as error_context:
6965
UNet2DConditionModel.from_pretrained("hf-internal-testing/stable-diffusion-broken", subfolder="unet")

0 commit comments

Comments
 (0)