[pypy-svn] r28456 - pypy/dist/pypy/translator/cli/test
antocuni at codespeak.net
antocuni at codespeak.net
Wed Jun 7 16:17:59 CEST 2006
Author: antocuni
Date: Wed Jun 7 16:17:59 2006
New Revision: 28456
Modified:
pypy/dist/pypy/translator/cli/test/runtest.py
Log:
bugfix for the previous bugfix.
Modified: pypy/dist/pypy/translator/cli/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/cli/test/runtest.py (original)
+++ pypy/dist/pypy/translator/cli/test/runtest.py Wed Jun 7 16:17:59 2006
@@ -227,9 +227,12 @@
def interpret_raises(self, exception, fn, args):
import exceptions # needed by eval
- res = self.interpret(fn, args)
- assert isinstance(res, ExceptionWrapper)
- assert issubclass(eval(res.class_name), exception)
+ try:
+ self.interpret(fn, args)
+ except ExceptionWrapper, ex:
+ assert issubclass(eval(ex.class_name), exception)
+ else:
+ assert False, 'function did raise no exception at all'
def ll_to_string(self, s):
return s
More information about the Pypy-commit
mailing list