Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
skip flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiBapchya committed Apr 28, 2020
1 parent f761b24 commit 1c720fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/python/unittest/test_numpy_interoperability.py
Original file line number Diff line number Diff line change
Expand Up @@ -3250,13 +3250,15 @@ def test_np_memory_array_function():
assert op(data_mx, np.ones((5, 0))) == op(data_np, _np.ones((5, 0)))


@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/17840")
@with_seed()
@use_np
@with_array_function_protocol
def test_np_array_function_protocol():
check_interoperability(_NUMPY_ARRAY_FUNCTION_LIST)


@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/17840")
@with_seed()
@use_np
@with_array_ufunc_protocol
Expand Down
1 change: 1 addition & 0 deletions tests/python/unittest/test_numpy_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def check_identity_array_creation(shape, dtype):
assert type(y[1]) == np.ndarray


@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/17840")
@with_seed()
def test_np_ndarray_binary_element_wise_ops():
np_op_map = {
Expand Down
4 changes: 4 additions & 0 deletions tests/python/unittest/test_numpy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ def hybrid_forward(self, F, a, b):
assert_almost_equal(b.grad.asnumpy(), np_backward[1], rtol=1e-2, atol=1e-2)


@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/17840")
@with_seed()
@use_np
def test_np_sum():
Expand Down Expand Up @@ -1029,6 +1030,7 @@ def avg_backward(a, w, avg, axes, init_a_grad=None, init_w_grad=None):
assert_almost_equal(mx_out.asnumpy(), np_out.astype(dtype), rtol=rtol, atol=atol)


@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/17840")
@with_seed()
@use_np
def test_np_mean():
Expand Down Expand Up @@ -2220,6 +2222,7 @@ def hybrid_forward(self, F, x):
assert same(ret_mx.asnumpy(), ret_np)


@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/17840")
@with_seed()
@use_np
def test_np_unary_funcs():
Expand Down Expand Up @@ -2442,6 +2445,7 @@ def hybrid_forward(self, F, a, *args, **kwargs):
check_unary_func(func, ref_grad, shape, low, high)


@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/17840")
@with_seed()
@use_np
def test_np_binary_funcs():
Expand Down

0 comments on commit 1c720fa

Please sign in to comment.