[pypy-commit] pypy numpypy-axisops: improve the error message

fijal noreply at buildbot.pypy.org
Sat Jan 7 22:49:11 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpypy-axisops
Changeset: r51128:a65f5ec8c18b
Date: 2012-01-07 23:48 +0200
http://bitbucket.org/pypy/pypy/changeset/a65f5ec8c18b/

Log:	improve the error message

diff --git a/pypy/module/micronumpy/test/test_zjit.py b/pypy/module/micronumpy/test/test_zjit.py
--- a/pypy/module/micronumpy/test/test_zjit.py
+++ b/pypy/module/micronumpy/test/test_zjit.py
@@ -47,6 +47,8 @@
         def f(i):
             interp = InterpreterState(codes[i])
             interp.run(space)
+            if not len(interp.results):
+                raise Exception("need results")
             w_res = interp.results[-1]
             if isinstance(w_res, BaseArray):
                 concr = w_res.get_concrete_or_scalar()


More information about the pypy-commit mailing list