mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Support for old TestResult object (unittest) with warnings when using unsupported features.
This commit is contained in:
		
							parent
							
								
									4b81bc7fe6
								
							
						
					
					
						commit
						ae3db0a12b
					
				
					 3 changed files with 77 additions and 8 deletions
				
			
		|  | @ -107,6 +107,6 @@ def _count_relevant_tb_levels(self, tb): | |||
|         return length | ||||
| 
 | ||||
|     def __repr__(self): | ||||
|         return "<%s run=%i errors=%i failures=%i>" % \ | ||||
|         return ("<%s run=%i errors=%i failures=%i>" % | ||||
|                (util.strclass(self.__class__), self.testsRun, len(self.errors), | ||||
|                 len(self.failures)) | ||||
|                 len(self.failures))) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Foord
						Michael Foord