From 0f9bc723e74f8c3415d07948e1aa70ab1d484a0f Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Wed, 7 Aug 2019 14:28:09 +0200
Subject: [PATCH] Fixup: pytest.skip must be pytest.mark.skipif for conditional
 skip

---
 tests/backends/test_torch_native_compilation.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/backends/test_torch_native_compilation.py b/tests/backends/test_torch_native_compilation.py
index b0c0dc6..bf72109 100644
--- a/tests/backends/test_torch_native_compilation.py
+++ b/tests/backends/test_torch_native_compilation.py
@@ -164,7 +164,8 @@ def test_execute_torch():
     assert op_cpp is not None
 
 
-@pytest.skip('NO_GPU_EXECUTION' in os.environ, reason='Skip GPU execution tests')
+@pytest.mark.skipif('NO_GPU_EXECUTION' in os.environ, reason='Skip GPU execution tests')
+
 def test_execute_torch_gpu():
     x, y = pystencils.fields('x, y: float64[32,32]')
 
-- 
GitLab