mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	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)
 |