Merge pull request #6274 from radarhere/imagetk

Skip test_imagetk if tk raises a RuntimeError
This commit is contained in:
Hugo van Kemenade 2022-05-05 23:41:55 +03:00 committed by GitHub
commit 3fa89f09eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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