Coverage for idle_test/test_calltip_w.py: 63%
21 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 calltip_w, coverage 18%."
3from idlelib import calltip_w
4import unittest
5from test.support import requires
6from tkinter import Tk, Text
9class CallTipWindowTest(unittest.TestCase):
11 @classmethod
12 def setUpClass(cls):
13 requires('gui')
14 cls.root = Tk()
15 cls.root.withdraw()
16 cls.text = Text(cls.root)
17 cls.calltip = calltip_w.CalltipWindow(cls.text)
19 @classmethod
20 def tearDownClass(cls):
21 cls.root.update_idletasks()
22 cls.root.destroy()
23 del cls.text, cls.root
25 def test_init(self):
26 self.assertEqual(self.calltip.anchor_widget, self.text)
28if __name__ == '__main__': 28 ↛ 29line 28 didn't jump to line 29, because the condition on line 28 was never true
29 unittest.main(verbosity=2)