Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/test_gumath.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

try:
import numpy as np
np.warnings.filterwarnings('ignore')

import warnings
warnings.filterwarnings('ignore')
except ImportError:
np = None

Expand Down
5 changes: 3 additions & 2 deletions python/test_xndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
try:
import numpy as np
HAVE_ARRAY_FUNCTION = hasattr(np.ndarray, '__array_function__')
np.warnings.filterwarnings('ignore')

import warnings
warnings.filterwarnings('ignore')
except ImportError:
np = None
HAVE_ARRAY_FUNCTION = False
Expand Down Expand Up @@ -370,7 +372,6 @@ def test_bartlett(self):
expected = np.bartlett(np.array(12, dtype="int32"))
x = array(12, dtype="int32")
ans = np.bartlett(x)
self.assertIsInstance(ans, array)
np.testing.assert_equal(ans, expected)

def test_binary(self):
Expand Down