mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 10:26:02 +00:00 
			
		
		
		
	 4d92158f4c
			
		
	
	
		4d92158f4c
		
			
		
	
	
	
	
		
			
			Part 3 of 3, continuing PR #7689. This covers 14 idlelib modules and their tests, rpc to zoomheight except for run (already done) and tooltip (being done separately).
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			496 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			496 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| "Test scrolledlist, coverage 38%."
 | |
| 
 | |
| from idlelib.scrolledlist import ScrolledList
 | |
| import unittest
 | |
| from test.support import requires
 | |
| requires('gui')
 | |
| from tkinter import Tk
 | |
| 
 | |
| 
 | |
| class ScrolledListTest(unittest.TestCase):
 | |
| 
 | |
|     @classmethod
 | |
|     def setUpClass(cls):
 | |
|         cls.root = Tk()
 | |
| 
 | |
|     @classmethod
 | |
|     def tearDownClass(cls):
 | |
|         cls.root.destroy()
 | |
|         del cls.root
 | |
| 
 | |
| 
 | |
|     def test_init(self):
 | |
|         ScrolledList(self.root)
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     unittest.main(verbosity=2)
 |