]> git.ipfire.org Git - thirdparty/tornado.git/commit
testing: Connect to 127.0.0.1 instead of localhost
authorBen Darnell <ben@bendarnell.com>
Sun, 5 Nov 2017 15:32:10 +0000 (10:32 -0500)
committerBen Darnell <ben@bendarnell.com>
Fri, 5 Jan 2018 14:04:44 +0000 (09:04 -0500)
commit84bb2e285e15415bb86cbdf2326b19f0debb80fd
treef7b2c0779e5f0274b4f1999b26d890a8230d775e
parentf1f7d2ef8a5428ad64877191a4efafa47b9fe752
testing: Connect to 127.0.0.1 instead of localhost

The servers used in tests are only listening for ipv4, not ipv6
(to avoid spurious firewall prompts on macos). In what is apparently
a recent macos change, connecting to `localhost` when the ipv6 port
is unbound now incurs a 200ms delay, slowing a full test run down
by a factor of 20.
tornado/test/simple_httpclient_test.py
tornado/test/web_test.py
tornado/testing.py