From 26e68ed321cdd73916b531fb2130acea8c72d100 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 4 May 2022 22:30:44 +1000 Subject: [PATCH] Skip test_imagetk if tk raises a RuntimeError --- Tests/test_imagetk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/test_imagetk.py b/Tests/test_imagetk.py index 9df66df2d..a929910b3 100644 --- a/Tests/test_imagetk.py +++ b/Tests/test_imagetk.py @@ -26,6 +26,8 @@ def setup_module(): # setup tk tk.Frame() # root = tk.Tk() + except RuntimeError as v: + pytest.skip(f"RuntimeError: {v}") except tk.TclError as v: pytest.skip(f"TCL Error: {v}")