mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Issue #10572: Moved json tests to Lib/test/json_tests.
Approved by Raymond Hettinger.
This commit is contained in:
		
							parent
							
								
									69b34bfe9c
								
							
						
					
					
						commit
						ff27ee0b40
					
				
					 18 changed files with 4 additions and 4 deletions
				
			
		|  | @ -10,7 +10,7 @@ def test_suite(): | |||
|     loader = unittest.TestLoader() | ||||
|     for fn in os.listdir(here): | ||||
|         if fn.startswith("test") and fn.endswith(".py"): | ||||
|             modname = "json.tests." + fn[:-3] | ||||
|             modname = "test.json_tests." + fn[:-3] | ||||
|             __import__(modname) | ||||
|             module = sys.modules[modname] | ||||
|             suite.addTests(loader.loadTestsFromModule(module)) | ||||
|  | @ -5,12 +5,12 @@ | |||
| be run. | ||||
| """ | ||||
| 
 | ||||
| import json.tests | ||||
| from test import json_tests | ||||
| import test.support | ||||
| 
 | ||||
| 
 | ||||
| def test_main(): | ||||
|     test.support.run_unittest(json.tests.test_suite()) | ||||
|     test.support.run_unittest(json_tests.test_suite()) | ||||
| 
 | ||||
| 
 | ||||
| if __name__ == "__main__": | ||||
|  |  | |||
|  | @ -890,7 +890,7 @@ LIBSUBDIRS=	tkinter tkinter/test tkinter/test/test_tkinter \ | |||
| 		test/tracedmodules test/encoded_modules \ | ||||
| 		concurrent concurrent/futures encodings \ | ||||
| 		email email/mime email/test email/test/data \ | ||||
| 		html json json/tests http dbm xmlrpc \ | ||||
| 		html json test/json_tests http dbm xmlrpc \ | ||||
| 		sqlite3 sqlite3/test \ | ||||
| 		logging csv wsgiref urllib \ | ||||
| 		lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alexander Belopolsky
						Alexander Belopolsky