Coverage for idle_test/test_scrolledlist.py: 17%
17 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 scrolledlist, coverage 38%."
3from idlelib.scrolledlist import ScrolledList
4import unittest
5from test.support import requires
6requires('gui')
7from tkinter import Tk
10class ScrolledListTest(unittest.TestCase):
12 @classmethod
13 def setUpClass(cls):
14 cls.root = Tk()
16 @classmethod
17 def tearDownClass(cls):
18 cls.root.destroy()
19 del cls.root
22 def test_init(self):
23 ScrolledList(self.root)
26if __name__ == '__main__':
27 unittest.main(verbosity=2)