From c3720d73bd895cc833d8a03412ffd54de328879b Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Tue, 3 Dec 2019 12:10:37 +0100
Subject: [PATCH] Fixup: skiptest if lbmpy not available

---
 pystencils_tests/test_graph_datahandling.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pystencils_tests/test_graph_datahandling.py b/pystencils_tests/test_graph_datahandling.py
index 441b9ff38..ccb0ebf91 100644
--- a/pystencils_tests/test_graph_datahandling.py
+++ b/pystencils_tests/test_graph_datahandling.py
@@ -10,6 +10,8 @@
 
 import pytest
 
+pytest.importorskip('lbmpy')
+
 from lbmpy.boundaries import UBB, FixedDensity, NoSlip
 from lbmpy.geometry import add_pipe_inflow_boundary, add_pipe_walls
 from lbmpy.lbstep import LatticeBoltzmannStep
@@ -17,7 +19,6 @@ from pystencils.datahandling import create_data_handling
 from pystencils.datahandling.graph_datahandling import GraphDataHandling
 from pystencils.slicing import slice_from_direction
 
-pytest.importorskip('lbmpy')
 
 
 def create_lid_driven_cavity(domain_size=None, lid_velocity=0.005, lbm_kernel=None,
-- 
GitLab