10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ea3a2 commit 514d136Copy full SHA for 514d136
numpy/lib/tests/test_nanfunctions.py
@@ -318,7 +318,9 @@ def test_dtype_from_dtype(self):
318
for nf, rf in zip(self.nanfuncs, self.stdfuncs):
319
for c in codes:
320
with suppress_warnings() as sup:
321
- sup.filter(np.ComplexWarning)
+ if nf in {np.nanstd, np.nanvar} and c in 'FDG':
322
+ # Giving the warning is a small bug, see gh-8000
323
+ sup.filter(np.ComplexWarning)
324
tgt = rf(mat, dtype=np.dtype(c), axis=1).dtype.type
325
res = nf(mat, dtype=np.dtype(c), axis=1).dtype.type
326
assert_(res is tgt)
@@ -333,7 +335,9 @@ def test_dtype_from_char(self):
333
335
334
336
337
338
339
340
341
tgt = rf(mat, dtype=c, axis=1).dtype.type
342
res = nf(mat, dtype=c, axis=1).dtype.type
343
0 commit comments