]> 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>
Sun, 5 Nov 2017 15:32:10 +0000 (10:32 -0500)
commitfab9550e8723adddc47e3fbd50e37da49a8a2afc
tree018f682d40fdb1f33fc2392144b3be9c10ee06c0
parentdef56207da3c08291963a3e8e8e5ba079a5b594e
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