Skip test_imagetk if tk raises a RuntimeError

This commit is contained in:
Andrew Murray 2022-05-04 22:30:44 +10:00
parent e42d8b0890
commit 26e68ed321

View File

@ -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}")