From 9712dfccf874291231c0a55cf3547498a45cb424 Mon Sep 17 00:00:00 2001 From: Julien Gacon Date: Tue, 10 Sep 2024 16:10:24 +0200 Subject: [PATCH] Fix skipping of slow tests (#13119) (cherry picked from commit d14eb9c4829268cd531c4a6ff68f5a297dc84b3c) --- test/utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils/decorators.py b/test/utils/decorators.py index d3abb37bbef1..1b1df0efc9c1 100644 --- a/test/utils/decorators.py +++ b/test/utils/decorators.py @@ -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)