]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31870: Fix test_get_server_certificate_timeout on Windows (GH-25570)
authorChristian Heimes <christian@python.org>
Sat, 24 Apr 2021 05:54:08 +0000 (07:54 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Apr 2021 05:54:08 +0000 (07:54 +0200)
commitf05c2aed7e25087122613b51f152919c79641f66
treeabc91b8e3fac31c57c39844c56274e2371fafeb9
parentb2fac1afaa7c0d41a263781fcf94d8a92dc31b48
bpo-31870: Fix test_get_server_certificate_timeout on Windows (GH-25570)

Some OS do not support millisecond granularity in select(). Use 100ms
timeout and a server callback with sleep to emulate a slow server.
Lib/test/test_ssl.py