summaryrefslogtreecommitdiff
path: root/Lib/test/test_tk.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_tk.py')
-rw-r--r--Lib/test/test_tk.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py
index 7551a7f470..589f66d692 100644
--- a/Lib/test/test_tk.py
+++ b/Lib/test/test_tk.py
@@ -6,8 +6,7 @@ support.import_module('_tkinter')
support.import_fresh_module('tkinter')
# Skip test if tk cannot be initialized.
-from tkinter.test.support import check_tk_availability
-check_tk_availability()
+support.requires('gui')
from tkinter.test import runtktests