Skip to content

Commit

Permalink
Made the downcast limits test its own function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Ver Halen committed Oct 25, 2016
1 parent a62a3f8 commit 21e1a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/tools/tests/test_util.py
Expand Up @@ -401,7 +401,8 @@ def test_downcast(self):
res = pd.to_numeric(data, downcast=downcast)
tm.assert_numpy_array_equal(res, expected)

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

0 comments on commit 21e1a97

Please sign in to comment.