From e957180d0a8f5e98a688993d52282c6edcd52aab Mon Sep 17 00:00:00 2001 From: Aaron Berdy Date: Fri, 20 Oct 2023 11:25:19 -0700 Subject: [PATCH] test: pytest skip python version mismatch --- test/integ_tests/test_create_quantum_job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integ_tests/test_create_quantum_job.py b/test/integ_tests/test_create_quantum_job.py index 7cab63c94..2ff8ab684 100644 --- a/test/integ_tests/test_create_quantum_job.py +++ b/test/integ_tests/test_create_quantum_job.py @@ -235,7 +235,7 @@ def decorator_job(a, b: int, c=0, d: float = 1.0, **extras): except RuntimeError as e: if str(e).startswith("Python version must match between local environment and container."): warn("skipping test due to python version mismatch") - return + pytest.skip("Skipping decorator tests due to Python version mismatch") raise e job = decorator_job(MyClass(), 2, d=5, extra_arg="extra_value") @@ -299,7 +299,7 @@ def decorator_job_submodule(): except RuntimeError as e: if str(e).startswith("Python version must match between local environment and container."): warn("skipping test due to python version mismatch") - return + pytest.skip("Skipping decorator tests due to Python version mismatch") raise e job = decorator_job_submodule()