Skip to content

Commit b4a80b9

Browse files
committed
verify: skip tkinter test if TCL_LIBRARY not set
This is a bit brittle. But it is an easy way to handle the case where tcl/tk aren't present, such as the case with Windows static distributions.
1 parent 0970801 commit b4a80b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/verify_distribution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def test_ssl(self):
121121

122122
ssl.create_default_context()
123123

124+
@unittest.skipIf("TCL_LIBRARY" not in os.environ, "TCL_LIBRARY not set")
124125
@unittest.skipIf("DISPLAY" not in os.environ, "DISPLAY not set")
125126
def test_tkinter(self):
126127
import tkinter as tk

0 commit comments

Comments
 (0)