diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py index ea3dafa07715b..8ed1d2d2d4f95 100644 --- a/pandas/tests/test_frame.py +++ b/pandas/tests/test_frame.py @@ -5748,7 +5748,7 @@ def _to_uni(x): recons.index = np.array(lmap(_to_uni,recons.index), dtype=r_dtype) df.index = np.array(lmap(_to_uni,df.index),dtype=r_dtype) - if r_dtype == 'dt': # unicode + elif r_dtype == 'dt': # unicode r_dtype='O' recons.index = np.array(lmap(Timestamp,recons.index), dtype=r_dtype)