mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Actually call the object with an __call__ method, instead of just
checking if it is callable. This is the only place in the test suite where an __call__ method is called.
This commit is contained in:
		
							parent
							
								
									5282044be7
								
							
						
					
					
						commit
						5ab366119e
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -53,6 +53,7 @@ class D(C):
 | 
			
		|||
    def __call__(self): pass
 | 
			
		||||
y = D()
 | 
			
		||||
if not callable(y): raise TestFailed, 'callable(y)'
 | 
			
		||||
y()
 | 
			
		||||
 | 
			
		||||
print 'chr'
 | 
			
		||||
if chr(32) != ' ': raise TestFailed, 'chr(32)'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue