Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whitespace fixup
  • Loading branch information
jbrockmendel committed Feb 9, 2018
commit 49cbe974e179b88d12106e10167881dbae710ef6
2 changes: 1 addition & 1 deletion pandas/tests/tslibs/test_tslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class TestArrayToDatetime(object):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm this should be in pandas/tests/indexes/datetimes/test_tools.py. I know you are ceating new locations is fine. but would rather move all of tools testing there (in a new PR).

def test_coerce_out_of_bounds_utc(self):
ts = pd.Timestamp('1900-01-01', tz='US/Pacific')
dt = ts.to_pydatetime() - timedelta(days=365*300) # ~1600AD
dt = ts.to_pydatetime() - timedelta(days=365 * 300) # ~1600AD
arr = np.array([dt])
result = array_to_datetime(arr, utc=True, errors='coerce')
assert (result == iNaT).all()