Skip to content

Commit 254bafa

Browse files
authored
Merge pull request #30955 from charris/backport-30879
ENH: Test .kind not .char in np.testing.assert_equal (#30879)
2 parents 9ee571d + 0cc7d38 commit 254bafa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

numpy/testing/_private/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True, header='',
743743
ox, oy = x, y
744744

745745
def isnumber(x):
746-
return x.dtype.char in '?bhilqpBHILQPefdgFDG'
746+
return type(x.dtype)._is_numeric
747747

748748
def istime(x):
749749
return x.dtype.char in "Mm"

0 commit comments

Comments
 (0)