[pypy-svn] r39178 - pypy/dist/pypy/lang/js/test/ecma
fijal at codespeak.net
fijal at codespeak.net
Sun Feb 18 19:57:09 CET 2007
Author: fijal
Date: Sun Feb 18 19:57:07 2007
New Revision: 39178
Modified:
pypy/dist/pypy/lang/js/test/ecma/conftest.py
Log:
Give a bit more detailed info
Modified: pypy/dist/pypy/lang/js/test/ecma/conftest.py
==============================================================================
--- pypy/dist/pypy/lang/js/test/ecma/conftest.py (original)
+++ pypy/dist/pypy/lang/js/test/ecma/conftest.py Sun Feb 18 19:57:07 2007
@@ -1,6 +1,6 @@
import py
from pypy.lang.js.interpreter import *
-from pypy.lang.js.jsobj import W_Array, JsBaseExcept
+from pypy.lang.js.jsobj import W_Array, JsTypeError
from pypy.lang.js.jsparser import JsSyntaxError
rootdir = py.magic.autopath().dirpath()
@@ -47,8 +47,8 @@
t = load_source(self.filepath.read())
try:
t.execute(self.interp.global_context)
- except (JsBaseExcept, JsSyntaxError):
- py.test.fail("Could not load js file")
+ except (JsTypeError, JsSyntaxError):
+ raise Failed(excinfo=py.code.ExceptionInfo())
testcases = self.interp.global_context.resolve_identifier('testcases')
values = testcases.GetValue().array
testcases.PutValue(W_Array(), self.interp.global_context)
More information about the Pypy-commit
mailing list