Author: Mark Pearse <[email protected]>
Branch: SpecialisedTuples
Changeset: r49100:9c629249bacd
Date: 2011-11-06 15:33 +0100
http://bitbucket.org/pypy/pypy/changeset/9c629249bacd/
Log: (antocuni, mwp) fix repr in tool/pytest/appsupport.py in case an
exception is raised
diff --git a/pypy/tool/pytest/appsupport.py b/pypy/tool/pytest/appsupport.py
--- a/pypy/tool/pytest/appsupport.py
+++ b/pypy/tool/pytest/appsupport.py
@@ -63,7 +63,10 @@
exec_ = eval
def repr(self, w_value):
- return self.space.unwrap(self.space.repr(w_value))
+ try:
+ return self.space.unwrap(self.space.repr(w_value))
+ except Exception, e:
+ return "<Sorry, exception while trying to do repr, %r>"%e
def is_true(self, w_value):
return self.space.is_true(w_value)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit