diff options
Diffstat (limited to 'Lib/test/test_tk.py')
-rw-r--r-- | Lib/test/test_tk.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py index 20b3fb59e3..2eca27b2b0 100644 --- a/Lib/test/test_tk.py +++ b/Lib/test/test_tk.py @@ -3,6 +3,11 @@ from tkinter.test import runtktests from test import support import unittest +# Skip test if _tkinter wasn't built. +support.import_module('_tkinter') + +import tkinter + try: tkinter.Button() except tkinter.TclError as msg: |