Terry Jan Reedy | ee5ef30 | 2018-06-15 18:20:55 -0400 | [diff] [blame] | 1 | "Test debugger, coverage 19%" |
Terry Jan Reedy | 01e3575 | 2016-06-10 18:19:21 -0400 | [diff] [blame] | 2 | |
Terry Jan Reedy | 01e3575 | 2016-06-10 18:19:21 -0400 | [diff] [blame] | 3 | from idlelib import debugger |
Terry Jan Reedy | ee5ef30 | 2018-06-15 18:20:55 -0400 | [diff] [blame] | 4 | import unittest |
Terry Jan Reedy | 01e3575 | 2016-06-10 18:19:21 -0400 | [diff] [blame] | 5 | from test.support import requires |
| 6 | requires('gui') |
Terry Jan Reedy | 01e3575 | 2016-06-10 18:19:21 -0400 | [diff] [blame] | 7 | from tkinter import Tk |
| 8 | |
| 9 | |
| 10 | class 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 | |
Terry Jan Reedy | ee5ef30 | 2018-06-15 18:20:55 -0400 | [diff] [blame] | 26 | # Other classes are Idb, Debugger, and StackViewer. |
| 27 | |
Terry Jan Reedy | 01e3575 | 2016-06-10 18:19:21 -0400 | [diff] [blame] | 28 | if __name__ == '__main__': |
| 29 | unittest.main(verbosity=2) |