mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues. Add util.py to contain objects that are used in multiple idlelib modules and have no dependencies on any of them. Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Test util, coverage 100%"""
 | 
						|
 | 
						|
import unittest
 | 
						|
from idlelib import util
 | 
						|
 | 
						|
 | 
						|
class UtilTest(unittest.TestCase):
 | 
						|
    def test_extensions(self):
 | 
						|
        for extension in {'.pyi', '.py', '.pyw'}:
 | 
						|
            self.assertIn(extension, util.py_extensions)
 | 
						|
 | 
						|
 | 
						|
if __name__ == '__main__':
 | 
						|
    unittest.main(verbosity=2)
 |