Skip to content

Commit 3b072e7

Browse files
authored
Update pandas/tests/tools/test_to_datetime.py
1 parent 0d36edf commit 3b072e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/tools/test_to_datetime.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1739,8 +1739,8 @@ def test_unit_str(self, cache):
17391739
# GH 57051
17401740
# Test that strs aren't dropping precision to 32-bit accidentally.
17411741
with tm.assert_produces_warning(FutureWarning):
1742-
res = pd.to_datetime(["1704660000"], unit="s", origin="unix")
1743-
expected = pd.to_datetime([1704660000], unit="s", origin="unix")
1742+
res = to_datetime(["1704660000"], unit="s", origin="unix")
1743+
expected = to_datetime([1704660000], unit="s", origin="unix")
17441744
tm.assert_index_equal(res, expected)
17451745

17461746
def test_unit_array_mixed_nans(self, cache):

0 commit comments

Comments
 (0)