Skip to content

Commit

Permalink
Require numpy>=1.14 to test eye with order argument
Browse files Browse the repository at this point in the history
  • Loading branch information
takagi committed Aug 12, 2020
1 parent 9c39c76 commit b0085d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/cupy_tests/creation_tests/test_basic.py
Expand Up @@ -164,7 +164,14 @@ def test_empty_zero_sized_array_strides(self, order):
@testing.for_CF_orders()
@testing.for_all_dtypes()
@testing.numpy_cupy_array_equal()
def test_eye(self, xp, dtype, order):
def test_eye(self, xp, dtype):
return xp.eye(5, 4, 1, dtype)

@testing.for_CF_orders()
@testing.for_all_dtypes()
@testing.numpy_cupy_array_equal()
@testing.with_requires('numpy>=1.14.0')
def test_eye_order(self, xp, dtype, order):
return xp.eye(5, 4, 1, dtype, order=order)

@testing.for_all_dtypes()
Expand Down

0 comments on commit b0085d4

Please sign in to comment.