diff --git a/conftest.py b/conftest.py
index 3280b6b3818a8457f33b8b72ed906d048adda180..dad3f63bf5a2979db76adc21f014d7c000d68d5d 100644
--- a/conftest.py
+++ b/conftest.py
@@ -19,9 +19,10 @@ try:
     import pyximport
 
     pyximport.install(language_level=3)
+
+    from lbmpy.phasefield.simplex_projection import simplex_projection_2d  # NOQA
 except ImportError:
     pass
-from lbmpy.phasefield.simplex_projection import simplex_projection_2d  # NOQA
 
 SCRIPT_FOLDER = os.path.dirname(os.path.realpath(__file__))
 sys.path.insert(0, os.path.abspath('lbmpy'))