1 ''' Test idlelib.debugger. 2 3 Coverage: 19% 4 ''' 5 from idlelib import debugger 6 from test.support import requires 7 requires('gui') 8 import unittest 9 from tkinter import Tk 10 11 12 class NameSpaceTest(unittest.TestCase): 13 14 @classmethod 15 def setUpClass(cls): 16 cls.root = Tk() 17 cls.root.withdraw() 18 19 @classmethod 20 def tearDownClass(cls): 21 cls.root.destroy() 22 del cls.root 23 24 def test_init(self): 25 debugger.NamespaceViewer(self.root, 'Test') 26 27 28 if __name__ == '__main__': 29 unittest.main(verbosity=2) 30