mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	 87a927325e
			
		
	
	
		87a927325e
		
			
		
	
	
	
	
		
			
			The revised file compiles, runs, and tests OK. idle_test/README.txt explains how to use it to create new IDLE test files.
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			642 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			642 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| "Test , coverage %."
 | |
| 
 | |
| from idlelib import zzdummy
 | |
| import unittest
 | |
| from test.support import requires
 | |
| from tkinter import Tk
 | |
| 
 | |
| 
 | |
| class Test(unittest.TestCase):
 | |
| 
 | |
|     @classmethod
 | |
|     def setUpClass(cls):
 | |
|         requires('gui')
 | |
|         cls.root = Tk()
 | |
|         cls.root.withdraw()
 | |
| 
 | |
|     @classmethod
 | |
|     def tearDownClass(cls):
 | |
|         cls.root.update_idletasks()
 | |
| ##        for id in cls.root.tk.call('after', 'info'):
 | |
| ##            cls.root.after_cancel(id)  # Need for EditorWindow.
 | |
|         cls.root.destroy()
 | |
|         del cls.root
 | |
| 
 | |
|     def test_init(self):
 | |
|         self.assertTrue(True)
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     unittest.main(verbosity=2)
 |