1"Test , coverage %." 2 3from idlelib import zzdummy 4import unittest 5from test.support import requires 6from tkinter import Tk 7 8 9class Test(unittest.TestCase): 10 11 @classmethod 12 def setUpClass(cls): 13 requires('gui') 14 cls.root = Tk() 15 cls.root.withdraw() 16 17 @classmethod 18 def tearDownClass(cls): 19 cls.root.update_idletasks() 20## for id in cls.root.tk.call('after', 'info'): 21## cls.root.after_cancel(id) # Need for EditorWindow. 22 cls.root.destroy() 23 del cls.root 24 25 def test_init(self): 26 self.assertTrue(True) 27 28 29if __name__ == '__main__': 30 unittest.main(verbosity=2) 31