From d61e9f8c9c52ba31f1832637840a8f88e1244164 Mon Sep 17 00:00:00 2001 From: Yichao Yu <yyc1992@gmail.com> Date: Sun, 18 May 2014 13:08:34 -0400 Subject: [PATCH] skip scalar as shape test on pypy. [upstream bug](https://bitbucket.org/pypy/numpy/issue/10/scalar-types-should-not-be-iterable) --- test/test_array.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_array.py b/test/test_array.py index 49c9d44b..bfe22784 100644 --- a/test/test_array.py +++ b/test/test_array.py @@ -445,6 +445,13 @@ def test_random(ctx_factory): # {{{ misc def test_numpy_integer_shape(ctx_factory): + try: + list(np.int32(17)) + except: + pass + else: + from pytest import skip + skip("numpy implementation does not handle scalar correctly.") context = ctx_factory() queue = cl.CommandQueue(context) -- GitLab