Author: mattip <matti.pi...@gmail.com> Branch: Changeset: r72382:30e15663c576 Date: 2014-07-08 13:46 +1000 http://bitbucket.org/pypy/pypy/changeset/30e15663c576/
Log: move test to untranslated diff --git a/pypy/module/micronumpy/test/test_scalar.py b/pypy/module/micronumpy/test/test_scalar.py --- a/pypy/module/micronumpy/test/test_scalar.py +++ b/pypy/module/micronumpy/test/test_scalar.py @@ -290,3 +290,13 @@ assert np.isnan(b/a) b = t(0.) assert np.isnan(b/a) + + def test_scalar_iter(self): + from numpypy import int8, int16, int32, int64, float32, float64 + for t in int8, int16, int32, int64, float32, float64: + try: + iter(t(17)) + except TypeError: + pass + else: + assert False, "%s object should not be iterable." % t diff --git a/pypy/module/test_lib_pypy/numpypy/core/test_numeric.py b/pypy/module/test_lib_pypy/numpypy/core/test_numeric.py --- a/pypy/module/test_lib_pypy/numpypy/core/test_numeric.py +++ b/pypy/module/test_lib_pypy/numpypy/core/test_numeric.py @@ -248,13 +248,3 @@ assert d.shape == (3, 3) assert d.dtype == dtype('int32') assert (d == [[1, 0, 0], [0, 1, 0], [0, 0, 1]]).all() - - def test_scalar_iter(self): - from numpypy import int8, int16, int32, int64, float32, float64 - for t in int8, int16, int32, int64, float32, float64: - try: - iter(t(17)) - except TypeError: - pass - else: - assert False, "%s object should not be iterable." % t _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit