mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 02:15:10 +00:00 
			
		
		
		
	merge
This commit is contained in:
		
						commit
						21cc628e4c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -467,7 +467,7 @@ the `new_callable` argument to `patch`. | ||||||
|         mock and unless the function returns the :data:`DEFAULT` singleton the |         mock and unless the function returns the :data:`DEFAULT` singleton the | ||||||
|         call to the mock will then return whatever the function returns. If the |         call to the mock will then return whatever the function returns. If the | ||||||
|         function returns :data:`DEFAULT` then the mock will return its normal |         function returns :data:`DEFAULT` then the mock will return its normal | ||||||
|         value (from the :attr:`return_value`. |         value (from the :attr:`return_value`). | ||||||
| 
 | 
 | ||||||
|         An example of a mock that raises an exception (to test exception |         An example of a mock that raises an exception (to test exception | ||||||
|         handling of an API): |         handling of an API): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon