commit | a089d21df1ea502b995d8e8a3bcc937cce030802 | [log] [tgz] |
---|---|---|
author | Hai Shi <shihai1992@gmail.com> | Mon Jul 06 17:15:08 2020 +0800 |
committer | GitHub <noreply@github.com> | Mon Jul 06 11:15:08 2020 +0200 |
tree | 0ca48d704e4b63bd7090483a24879a09e1f911eb | |
parent | 883bc638335a57a6e6a6344c2fc132c4f9a0ec42 [diff] [blame] |
bpo-40275: Use new test.support helper submodules in tests (GH-21315)
diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py index 48cefd9..59842a5 100644 --- a/Lib/test/test_tk.py +++ b/Lib/test/test_tk.py
@@ -1,6 +1,7 @@ from test import support +from test.support import import_helper # Skip test if _tkinter wasn't built. -support.import_module('_tkinter') +import_helper.import_module('_tkinter') # Skip test if tk cannot be initialized. support.requires('gui')