mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest.
This commit is contained in:
		
							parent
							
								
									bb9d726357
								
							
						
					
					
						commit
						b1aa30f94d
					
				
					 10 changed files with 32 additions and 5 deletions
				
			
		|  | @ -1,5 +1,8 @@ | |||
| """Various utility functions.""" | ||||
| 
 | ||||
| __unittest = True | ||||
| 
 | ||||
| 
 | ||||
| def safe_repr(obj): | ||||
|     try: | ||||
|         return repr(obj) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Foord
						Michael Foord