mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 18:28:49 +00:00 
			
		
		
		
	 94c95d42a3
			
		
	
	
		94c95d42a3
		
			
		
	
	
	
	
		
			
			Add assertSyntaxError() which run tests with an additional docstring and without docstring, and checks for the error message.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			149 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			149 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """This is a test"""
 | |
| 
 | |
| from __future__ import nested_scopes; import site
 | |
| 
 | |
| def f(x):
 | |
|     def g(y):
 | |
|         return x + y
 | |
|     return g
 | |
| 
 | |
| result = f(2)(4)
 |