diff options
Diffstat (limited to 'Lib/test/test_tk.py')
| -rw-r--r-- | Lib/test/test_tk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py index 8b21a0fc27..20b3fb59e3 100644 --- a/Lib/test/test_tk.py +++ b/Lib/test/test_tk.py @@ -1,12 +1,13 @@ import tkinter from tkinter.test import runtktests from test import support +import unittest try: tkinter.Button() except tkinter.TclError as msg: # assuming tk is not available - raise support.TestSkipped("tk not available: %s" % msg) + raise unittest.SkipTest("tk not available: %s" % msg) def test_main(enable_gui=False): if enable_gui: |
