Skip to content

Commit 3fa89f0

Browse files
authored
Merge pull request #6274 from radarhere/imagetk
Skip test_imagetk if tk raises a RuntimeError
2 parents 45f862e + 26e68ed commit 3fa89f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/test_imagetk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def setup_module():
2626
# setup tk
2727
tk.Frame()
2828
# root = tk.Tk()
29+
except RuntimeError as v:
30+
pytest.skip(f"RuntimeError: {v}")
2931
except tk.TclError as v:
3032
pytest.skip(f"TCL Error: {v}")
3133

0 commit comments

Comments
 (0)