(root)/
Python-3.12.0/
Lib/
idlelib/
idle_test/
template.py
       1  "Test , coverage %."
       2  
       3  from idlelib import zzdummy
       4  import unittest
       5  from test.support import requires
       6  from tkinter import Tk
       7  
       8  
       9  class ESC[4;38;5;81mTest(ESC[4;38;5;149munittestESC[4;38;5;149m.ESC[4;38;5;149mTestCase):
      10  
      11      @classmethod
      12      def setUpClass(cls):
      13          requires('gui')
      14          cls.root = Tk()
      15          cls.root.withdraw()
      16  
      17      @classmethod
      18      def tearDownClass(cls):
      19          cls.root.update_idletasks()
      20  ##        for id in cls.root.tk.call('after', 'info'):
      21  ##            cls.root.after_cancel(id)  # Need for EditorWindow.
      22          cls.root.destroy()
      23          del cls.root
      24  
      25      def test_init(self):
      26          self.assertTrue(True)
      27  
      28  
      29  if __name__ == '__main__':
      30      unittest.main(verbosity=2)