[pypy-svn] r10751 - in pypy/dist/pypy/tool: . test
hpk at codespeak.net
hpk at codespeak.net
Sat Apr 16 22:50:36 CEST 2005
Author: hpk
Date: Sat Apr 16 22:50:36 2005
New Revision: 10751
Modified:
pypy/dist/pypy/tool/pytestsupport.py
pypy/dist/pypy/tool/test/test_pytestsupport.py
Log:
fix
Modified: pypy/dist/pypy/tool/pytestsupport.py
==============================================================================
--- pypy/dist/pypy/tool/pytestsupport.py (original)
+++ pypy/dist/pypy/tool/pytestsupport.py Sat Apr 16 22:50:36 2005
@@ -43,7 +43,7 @@
self.operr = operr
self.traceback = AppTraceback(self.operr.application_traceback)
- def exconly(self):
+ def exconly(self, tryshort=True):
return '(application-level) ' + self.operr.errorstr(self.space)
def errisinstance(self, exc):
Modified: pypy/dist/pypy/tool/test/test_pytestsupport.py
==============================================================================
--- pypy/dist/pypy/tool/test/test_pytestsupport.py (original)
+++ pypy/dist/pypy/tool/test/test_pytestsupport.py Sat Apr 16 22:50:36 2005
@@ -61,6 +61,7 @@
else:
py.test.fail("did not raise!")
assert appex.exconly().find('ValueError') != -1
+ assert appex.exconly(tryshort=True).find('ValueError') != -1
assert appex.errisinstance(ValueError)
assert not appex.errisinstance(RuntimeError)
class A:
More information about the Pypy-commit
mailing list