• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"Test debugger, coverage 19%"
2
3from idlelib import debugger
4import unittest
5from test.support import requires
6requires('gui')
7from tkinter import Tk
8
9
10class NameSpaceTest(unittest.TestCase):
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
28if __name__ == '__main__':
29    unittest.main(verbosity=2)
30