diff --git a/python/tests/test_Grid.py b/python/tests/test_Grid.py index eedf05ae6..9fb2f310c 100644 --- a/python/tests/test_Grid.py +++ b/python/tests/test_Grid.py @@ -1,3 +1,5 @@ +import sys + import pytest import numpy as np import vtk @@ -47,6 +49,7 @@ class TestGrid: @pytest.mark.parametrize('cmap',[Colormap.from_predefined('stress'),'viridis']) + @pytest.mark.skipif(sys.platform == 'win32', reason='DISPLAY has no effect on windows') def test_show(sef,default,cmap,monkeypatch): monkeypatch.delenv('DISPLAY',raising=False) default.show(cmap) diff --git a/python/tests/test_VTK.py b/python/tests/test_VTK.py index 44226bf44..b0a7ef4c5 100644 --- a/python/tests/test_VTK.py +++ b/python/tests/test_VTK.py @@ -2,6 +2,7 @@ import os import filecmp import time import string +import sys import pytest import numpy as np @@ -31,6 +32,7 @@ class TestVTK: print('patched damask.util.execution_stamp') @pytest.mark.parametrize('cmap',[Colormap.from_predefined('cividis'),'strain']) + @pytest.mark.skipif(sys.platform == 'win32', reason='DISPLAY has no effect on windows') def test_show(sef,default,cmap,monkeypatch): monkeypatch.delenv('DISPLAY',raising=False) default.show(colormap=cmap)