Skip to content

Commit

Permalink
test: pytest skip python version mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ajberdy committed Oct 20, 2023
1 parent 6ba56a7 commit e957180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integ_tests/test_create_quantum_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit e957180

Please sign in to comment.