Author: Armin Rigo <ar...@tunes.org> Branch: ppc-jit-backend Changeset: r46165:3cd8bf9a25c0 Date: 2011-08-01 18:26 +0200 http://bitbucket.org/pypy/pypy/changeset/3cd8bf9a25c0/
Log: Skip the float tests properly, for all CPUs not supporting floats. diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_runner.py b/pypy/jit/backend/ppc/ppcgen/test/test_runner.py --- a/pypy/jit/backend/ppc/ppcgen/test/test_runner.py +++ b/pypy/jit/backend/ppc/ppcgen/test/test_runner.py @@ -4,14 +4,8 @@ class FakeStats(object): pass -#def skip(self): -# py.test.skip("not done") - class TestPPC(LLtypeBackendTest): - test_float_operations = skip - def setup_method(self, method): self.cpu = PPC_64_CPU(rtyper=None, stats=FakeStats()) self.cpu.setup_once() - diff --git a/pypy/jit/backend/test/runner_test.py b/pypy/jit/backend/test/runner_test.py --- a/pypy/jit/backend/test/runner_test.py +++ b/pypy/jit/backend/test/runner_test.py @@ -392,6 +392,8 @@ def test_float_operations(self): from pypy.jit.metainterp.test.test_executor import get_float_tests + if not self.cpu.supports_floats: + py.test.skip("requires floats") for opnum, boxargs, rettype, retvalue in get_float_tests(self.cpu): res = self.execute_operation(opnum, boxargs, rettype) if isinstance(res, BoxFloat): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit