diff --git a/python/tvm/testing/utils.py b/python/tvm/testing/utils.py index 1eecfa9f74bf..86e509b1217b 100644 --- a/python/tvm/testing/utils.py +++ b/python/tvm/testing/utils.py @@ -641,7 +641,7 @@ def _compile_only_marks(self): yield pytest.mark.skipif(True, reason=res) else: yield pytest.mark.skipif( - res, reason=f"Compile-time support for {self.long_name} not present" + not res, reason=f"Compile-time support for {self.long_name} not present" ) if self.target_kind_enabled is not None: @@ -673,7 +673,7 @@ def _run_only_marks(self): yield pytest.mark.skipif(True, reason=res) else: yield pytest.mark.skipif( - res, reason=f"Run-time support for {self.long_name} not present" + not res, reason=f"Run-time support for {self.long_name} not present" ) if self.target_kind_hardware is not None: