Commit 4965dafd authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #15392: Use test.test_support, as used test.support in 3.x.

parent 5783febe
# Skip test if _tkinter or _thread wasn't built or idlelib was deleted. # Skip test if _tkinter or _thread wasn't built or idlelib was deleted.
try: from test.test_support import import_module
import Tkinter import_module('Tkinter')
import threading # imported by PyShell, imports _thread import_module('threading') # imported by PyShell, imports _thread
import idlelib.idle_test as idletest idletest = import_module('idlelib.idle_test')
except ImportError:
import unittest
raise unittest.SkipTest
# Without test_main present, regrtest.runtest_inner (line1219) calls # Without test_main present, regrtest.runtest_inner (line1219) calls
# unittest.TestLoader().loadTestsFromModule(this_module) which calls # unittest.TestLoader().loadTestsFromModule(this_module) which calls
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment