1 "Test debugger, coverage 19%"
2
3 from idlelib import debugger
4 import unittest
5 from test.support import requires
6 requires('gui')
7 from tkinter import Tk
8
9
10 class ESC[4;38;5;81mNameSpaceTest(ESC[4;38;5;149munittestESC[4;38;5;149m.ESC[4;38;5;149mTestCase):
11
12 @classmethod
13 def setUpClass(cls):
14 cls.root = Tk()
15 cls.root.withdraw()
16
17 @classmethod
18 def tearDownClass(cls):
19 cls.root.destroy()
20 del cls.root
21
22 def test_init(self):
23 debugger.NamespaceViewer(self.root, 'Test')
24
25
26 # Other classes are Idb, Debugger, and StackViewer.
27
28 if __name__ == '__main__':
29 unittest.main(verbosity=2)