Skip to content

Commit

Permalink
increase tolerance 1000x
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Nov 3, 2023
1 parent 0d667cb commit 635d594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/tslibs/test_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def test_array_strptime_resolution_todaynow(self):
vals[::-1], fmt="%Y-%m-%d", utc=False, creso=creso_infer
)

# 1ms is an arbitrary cutoff for call overhead; in local testing the
# 1s is an arbitrary cutoff for call overhead; in local testing the
# actual difference is about 250us
tolerance = np.timedelta64(1, "ms")
tolerance = np.timedelta64(1, "s")

assert res.dtype == "M8[us]"
assert abs(res[0] - now) < tolerance
Expand Down

0 comments on commit 635d594

Please sign in to comment.