From 34b3d8bdfebe94ca34d61d5aeadcbc49eee6f95d Mon Sep 17 00:00:00 2001 From: Ella Charlaix <80481427+echarlaix@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:21:13 +0100 Subject: [PATCH] Skip private model loading for external contributors (#2130) --- tests/onnxruntime/test_modeling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/onnxruntime/test_modeling.py b/tests/onnxruntime/test_modeling.py index 255c0d9d0e..456ad73505 100644 --- a/tests/onnxruntime/test_modeling.py +++ b/tests/onnxruntime/test_modeling.py @@ -974,7 +974,7 @@ def test_stable_diffusion_model_on_rocm_ep_str(self): def test_load_model_from_hub_private(self): token = os.environ.get("HF_HUB_READ_TOKEN", None) - if token is None: + if not token: self.skipTest( "Test requires a read access token for optimum-internal-testing in the environment variable `HF_HUB_READ_TOKEN`." )