Skip to content

Commit 7c89dfa

Browse files
committed
TST: check for -inf dtype as well as +inf
1 parent d11eea2 commit 7c89dfa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/test_tseries.py

+5
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ def test_convert_infs():
295295
result = lib.maybe_convert_numeric(arr, set(), False)
296296
assert(result.dtype == np.float64)
297297

298+
arr = np.array(['-inf', '-inf', '-inf'], dtype='O')
299+
result = lib.maybe_convert_numeric(arr, set(), False)
300+
assert(result.dtype == np.float64)
301+
302+
298303
def test_convert_objects_ints():
299304
# test that we can detect many kinds of integers
300305
dtypes = ['i1', 'i2', 'i4', 'i8', 'u1', 'u2', 'u4', 'u8']

0 commit comments

Comments
 (0)