diff options
author | Ammar Askar <ammar_askar@hotmail.com> | 2018-07-25 09:54:58 -0700 |
---|---|---|
committer | Alexander Belopolsky <abalkin@users.noreply.github.com> | 2018-07-25 12:54:58 -0400 |
commit | 96d1e69a12ed8ab80203277e1abdaf573457a964 (patch) | |
tree | e6cdbe9b8eec222ba25cf313c0ba4361f2dd68d9 /Lib/test/test_tracemalloc.py | |
parent | 74102c9a5f2327c4fc47feefa072854a53551d1f (diff) | |
download | cpython-git-96d1e69a12ed8ab80203277e1abdaf573457a964.tar.gz |
bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385)
On Windows, passing a negative value to local results in an OSError because localtime_s on Windows does not support negative timestamps. Unfortunately this means that fold detection for timestamps between 0 and max_fold_seconds will result in this OSError since we subtract max_fold_seconds from the timestamp to detect a fold. However, since we know there haven't been any folds in the interval [0, max_fold_seconds) in any timezone, we can hackily just forego fold detection for this time range on Windows.
Diffstat (limited to 'Lib/test/test_tracemalloc.py')
0 files changed, 0 insertions, 0 deletions