Coverage for idle_test/test_debugger.py: 17%
18 statements
« prev ^ index » next coverage.py v7.2.5, created at 2023-05-11 13:22 -0700
« prev ^ index » next coverage.py v7.2.5, created at 2023-05-11 13:22 -0700
1"Test debugger, coverage 19%"
3from idlelib import debugger
4import unittest
5from test.support import requires
6requires('gui')
7from tkinter import Tk
10class NameSpaceTest(unittest.TestCase):
12 @classmethod
13 def setUpClass(cls):
14 cls.root = Tk()
15 cls.root.withdraw()
17 @classmethod
18 def tearDownClass(cls):
19 cls.root.destroy()
20 del cls.root
22 def test_init(self):
23 debugger.NamespaceViewer(self.root, 'Test')
26# Other classes are Idb, Debugger, and StackViewer.
28if __name__ == '__main__':
29 unittest.main(verbosity=2)