Skip to content

Commit a60dc77

Browse files
Zac-HDLiam-DeVoe
andauthored
Reduce rate of tricky datetimes
Co-authored-by: Liam DeVoe <[email protected]>
1 parent ecaed93 commit a60dc77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • hypothesis/src/hypothesis/strategies/_internal

‎hypothesis/src/hypothesis/strategies/_internal/datetime.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def _shift_datetime(value, steps):
272272
# The probability that a draw targets a tricky value, and the half-widths of
273273
# the windows we draw them from: tight enough to hit the boundary
274274
# microseconds, wide enough to reach e.g. the far side of a DST gap.
275-
_TRICKY_P = 0.25
275+
_TRICKY_P = 0.05
276276
_TRICKY_WIDTHS = (
277277
dt.timedelta(seconds=1, microseconds=1),
278278
dt.timedelta(hours=1, microseconds=1),

0 commit comments

Comments
 (0)