hande the trial todo class by using repr
This commit is contained in:
		
							parent
							
								
									6dd8405aed
								
							
						
					
					
						commit
						6155e9139d
					
				| 
						 | 
					@ -137,7 +137,7 @@ def pytest_runtest_makereport(__multicall__, item, call):
 | 
				
			||||||
        rep = __multicall__.execute()
 | 
					        rep = __multicall__.execute()
 | 
				
			||||||
        if rep.when == "call":
 | 
					        if rep.when == "call":
 | 
				
			||||||
            # we need to translate into how py.test encodes xpass
 | 
					            # we need to translate into how py.test encodes xpass
 | 
				
			||||||
            rep.keywords['xfail'] = "reason: " + item._unexpectedsuccess
 | 
					            rep.keywords['xfail'] = "reason: " + repr(item._unexpectedsuccess)
 | 
				
			||||||
            rep.outcome = "failed"
 | 
					            rep.outcome = "failed"
 | 
				
			||||||
        return rep
 | 
					        return rep
 | 
				
			||||||
    if not (call.excinfo and
 | 
					    if not (call.excinfo and
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue