Skip to content

Commit

Permalink
Fix skipping of slow tests (#13119)
Browse files Browse the repository at this point in the history
(cherry picked from commit d14eb9c)
  • Loading branch information
Cryoris authored and mergify[bot] committed Sep 10, 2024
1 parent 91c566e commit 9712dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def slow_test(func):

@functools.wraps(func)
def _wrapper(*args, **kwargs):
if "run_slow" in os.environ.get("QISKIT_TESTS", ""):
if "run_slow" not in os.environ.get("QISKIT_TESTS", ""):
raise unittest.SkipTest("Skipping slow tests")
return func(*args, **kwargs)

Expand Down

0 comments on commit 9712dfc

Please sign in to comment.