From d8a6e853413b877ac87232757782fbf86c086acd Mon Sep 17 00:00:00 2001 From: Morcki Date: Fri, 8 Jul 2022 10:22:22 +0800 Subject: [PATCH 1/2] fix bug in test_ggui.py when some pc env do not surrport ggui --- tests/python/test_ggui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python/test_ggui.py b/tests/python/test_ggui.py index eea020a19ca6c..68c0cb91c7667 100644 --- a/tests/python/test_ggui.py +++ b/tests/python/test_ggui.py @@ -297,7 +297,7 @@ def render(): def test_exit_without_showing(): window = ti.ui.Window("Taichi", (256, 256), show_window=False) - +@pytest.mark.skipif(not _ti_core.GGUI_AVAILABLE, reason="GGUI Not Available") @test_utils.test(arch=supported_archs) def test_get_camera_view_and_projection_matrix(): scene = ti.ui.Scene() From 97e8550081a05a7d912e38ea5199eb46c7027841 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 02:26:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/python/test_ggui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/python/test_ggui.py b/tests/python/test_ggui.py index 68c0cb91c7667..80e7e63694cff 100644 --- a/tests/python/test_ggui.py +++ b/tests/python/test_ggui.py @@ -297,6 +297,7 @@ def render(): def test_exit_without_showing(): window = ti.ui.Window("Taichi", (256, 256), show_window=False) + @pytest.mark.skipif(not _ti_core.GGUI_AVAILABLE, reason="GGUI Not Available") @test_utils.test(arch=supported_archs) def test_get_camera_view_and_projection_matrix():