summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-25 20:34:09 (GMT)
committerAlexander Belopolsky <abalkin@users.noreply.github.com>2018-07-25 20:34:09 (GMT)
commit973649342cee3869409f341ff0f0e3d2b1547c2a (patch)
tree52d9f032b7e407c1a2ef109ffc9df3daada6b4d6 /Lib/test/test_pydoc.py
parentec02c58f5a6fdb06b769f53255fcb5d393812160 (diff)
downloadcpython-973649342cee3869409f341ff0f0e3d2b1547c2a.zip
cpython-973649342cee3869409f341ff0f0e3d2b1547c2a.tar.gz
cpython-973649342cee3869409f341ff0f0e3d2b1547c2a.tar.bz2
bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385) (GH-8466)
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. (cherry picked from commit 96d1e69a12ed8ab80203277e1abdaf573457a964) Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
Diffstat (limited to 'Lib/test/test_pydoc.py')
0 files changed, 0 insertions, 0 deletions