Skip to content

Commit b0757dc

Browse files
committed
TST: only test for np.float128 if np supports
1 parent 416352f commit b0757dc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/test_nanops.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,12 @@ def test_nanmean_overflow(self):
340340
self.assertTrue(result.dtype == np.float64)
341341

342342
def test_returned_dtype(self):
343-
for dtype in [np.int16, np.int32, np.int64, np.float32, np.float64, np.float128]:
343+
344+
dtypes = [np.int16, np.int32, np.int64, np.float32, np.float64]
345+
if hasattr(np,'float128'):
346+
dtypes.append(np.float128)
347+
348+
for dtype in dtypes:
344349
s = Series(range(10), dtype=dtype)
345350
group_a = ['mean', 'std', 'var', 'skew', 'kurt']
346351
group_b = ['min', 'max']

0 commit comments

Comments
 (0)