pytest.fail with non-ascii characters raises an internal pytest error

Fix #1178
This commit is contained in:
Bruno Oliveira
2016-03-05 16:09:01 -03:00
parent 3884398055
commit 24d3e01548
4 changed files with 25 additions and 2 deletions
+1 -1
View File
@@ -435,7 +435,7 @@ class OutcomeException(Exception):
def __repr__(self):
if self.msg:
return str(self.msg)
return py._builtin._totext(self.msg)
return "<%s instance>" %(self.__class__.__name__,)
__str__ = __repr__