Skip to content

Commit 9fd663e

Browse files
committed
adapt test
1 parent 849d5b1 commit 9fd663e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/onnxruntime/test_modeling.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ def test_load_stable_diffusion_model_unknown_provider(self):
383383
)
384384

385385
def test_load_model_from_hub_without_onnx_model(self):
386-
with self.assertRaises(FileNotFoundError):
387-
ORTModel.from_pretrained(self.FAIL_ONNX_MODEL_ID)
386+
ORTModel.from_pretrained(self.FAIL_ONNX_MODEL_ID)
388387

389388
def test_model_on_cpu(self):
390389
model = ORTModel.from_pretrained(self.ONNX_MODEL_ID)

0 commit comments

Comments
 (0)