bpo-27456: Ensure TCP_NODELAY is set on linux (#4231)

This commit is contained in:
Yury Selivanov 2017-12-15 19:32:25 -05:00 committed by GitHub
parent 4ac5150e06
commit e796b2fe26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 31 deletions

View file

@ -107,13 +107,6 @@ class BaseEventTests(test_utils.TestCase):
self.assertIsNone(
base_events._ipaddr_info('::3%lo0', 1, INET6, STREAM, TCP))
if hasattr(socket, 'SOCK_NONBLOCK'):
self.assertEqual(
None,
base_events._ipaddr_info(
'1.2.3.4', 1, INET, STREAM | socket.SOCK_NONBLOCK, TCP))
def test_port_parameter_types(self):
# Test obscure kinds of arguments for "port".
INET = socket.AF_INET