[pypy-svn] r65338 - in pypy/branch/pyjitpl5/pypy/jit/backend/cli: . test
antocuni at codespeak.net
antocuni at codespeak.net
Wed May 20 18:42:02 CEST 2009
Author: antocuni
Date: Wed May 20 18:42:01 2009
New Revision: 65338
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py
pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_exception.py
Log:
implement set_overflow_error to make test_int_lshift_ovf passing
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py Wed May 20 18:42:01 2009
@@ -129,10 +129,14 @@
self.get_inputargs().set_exc_value(None)
def set_overflow_error(self):
- raise NotImplementedError
+ exc_obj = ootype.cast_to_object(self.ll_ovf_exc)
+ exc_value = dotnet.cast_to_native_object(exc_obj)
+ self.get_inputargs().set_exc_value(exc_value)
def set_zero_division_error(self):
- raise NotImplementedError
+ exc_obj = ootype.cast_to_object(self.ll_zero_exc)
+ exc_value = dotnet.cast_to_native_object(exc_obj)
+ self.get_inputargs().set_exc_value(exc_value)
# ----------------------
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_exception.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_exception.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_exception.py Wed May 20 18:42:01 2009
@@ -7,10 +7,5 @@
# for the individual tests see
# ====> ../../../metainterp/test/test_exception.py
- def skip(self):
- py.test.skip('in-progress')
-
- test_int_lshift_ovf = skip
-
-
+ pass
More information about the Pypy-commit
mailing list