[pypy-commit] pypy SpecialisedTuples: (antocuni, mwp) fix repr in tool/pytest/appsupport.py in case an exception is raised
mwp
noreply at buildbot.pypy.org
Thu Nov 10 10:47:47 CET 2011
Author: Mark Pearse <mark.pearse at skynet.be>
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)
More information about the pypy-commit
mailing list