comparison test/test_mysql.py @ 7916:4cca0ae9f901

issue2551334 - get test suite running under windows https://stackoverflow.com/questions/59506097/python-requests-library-is-very-slow-on-windows/75425238#75425238 reports that the requests libary uses urllib3. On windows this tries (and retries) an IPv6 address if localhost is used in the url. This takes 2s per request to test IPv6, give up and use IPv4. At that rate, the rate limit is never reached and the rest_login_RateLimit test fails. This patch rewrites the base url to use 127.0.0.1 replacing localhost. It forced urllib3 to open only an IPv4 address and the speedup allows the test to pass.
author John Rouillard <rouilj@ieee.org>
date Sun, 28 Apr 2024 19:24:19 -0400
parents 521d98231e5c
children
comparison
equal deleted inserted replaced
7915:82093eb944d6 7916:4cca0ae9f901

Roundup Issue Tracker: http://roundup-tracker.org/