Skip to content
Snippets Groups Projects
Commit 16fcf27f authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Back off the max value from this strategy a bit

parent 11e0cff4
No related branches found
No related tags found
1 merge request!68Add stat_shares interface
......@@ -565,8 +565,11 @@ def posix_safe_datetimes():
# represent a timestamp with microsecond precision in a floating point
# number, which we do with any POSIX timestamp-like API (eg
# twisted.internet.task.Clock). So don't go far enough into the
# future.
max_value=datetime(2200, 1, 1),
# future. Furthermore, once we don't fit into an unsigned 4 byte
# integers, we can't round-trip through all the things that expect a
# time_t. Stay back from the absolute top to give tests a little
# space to advance time, too.
max_value=datetime.utcfromtimestamp(2 ** 31),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment