diff options
-rw-r--r-- | numpy/core/tests/test_ufunc.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/numpy/core/tests/test_ufunc.py b/numpy/core/tests/test_ufunc.py index e4698abc6..eadb767ed 100644 --- a/numpy/core/tests/test_ufunc.py +++ b/numpy/core/tests/test_ufunc.py @@ -16,7 +16,8 @@ class TestUfunc(TestCase): def test_pickle_withstring(self): import pickle - astring = asbytes("cnumpy.core\n_ufunc_reconstruct\np0\n(S'numpy.core.umath'\np1\nS'cos'\np2\ntp3\nRp4\n.") + astring = asbytes("cnumpy.core\n_ufunc_reconstruct\np0\n" + "(S'numpy.core.umath'\np1\nS'cos'\np2\ntp3\nRp4\n.") assert pickle.loads(astring) is np.cos def test_reduceat_shifting_sum(self) : @@ -802,11 +803,11 @@ class TestUfunc(TestCase): assert_raises(TypeError, test_add, a, b) def test_operand_flags(self): - a = np.arange(16, dtype='i8').reshape(4,4) - b = np.arange(9, dtype='i8').reshape(3,3) + a = np.arange(16, dtype='l').reshape(4,4) + b = np.arange(9, dtype='l').reshape(3,3) opflag_tests.inplace_add(a[:-1,:-1], b) assert_equal(a, np.array([[0,2,4,3],[7,9,11,7], - [14,16,18,11],[12,13,14,15]], dtype='i8')) + [14,16,18,11],[12,13,14,15]], dtype='l')) a = np.array(0) opflag_tests.inplace_add(a, 3) |