Skip to content

Commit f8af6dc

Browse files
author
Nicholas Ver Halen
committed
Made the downcast limits test its own function.
1 parent 6787b3d commit f8af6dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tools/tests/test_util.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ def test_downcast(self):
401401
res = pd.to_numeric(data, downcast=downcast)
402402
tm.assert_numpy_array_equal(res, expected)
403403

404-
# check that the smallest and largest values in each integer type pass to each type.
404+
def test_downcast_limits(self):
405+
# Test the limits of each downcast. Bug: #14401.
405406
dtype_downcast_min_max = [
406407
('int8', 'integer', [np.iinfo(np.int8).min, np.iinfo(np.int8).max]),
407408
('int16', 'integer', [np.iinfo(np.int16).min, np.iinfo(np.int16).max]),

0 commit comments

Comments
 (0)