summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-06-08 12:33:59 -0400
committerYury Selivanov <yury@magic.io>2016-06-08 12:33:59 -0400
commit552bf94648f09f4df68be9fc34a22f3b8441a67a (patch)
tree8789b0e0ce9787c99eabe21353ed6f65f31bf5f0 /Lib/test/test_asyncio/test_events.py
parentb198c42bcb8a9d7ccf4da0218b6ad6adc5beadfb (diff)
parentf1c6fa986647791977d974bd43119b46a7a3cdbc (diff)
downloadcpython-git-552bf94648f09f4df68be9fc34a22f3b8441a67a.tar.gz
Merge 3.5 (issue #27136, asyncio)
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r--Lib/test/test_asyncio/test_events.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index d52213ceb2..d0777758a7 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1610,25 +1610,6 @@ class EventLoopTestsMixin:
{'clock_resolution': self.loop._clock_resolution,
'selector': self.loop._selector.__class__.__name__})
- def test_sock_connect_address(self):
- addresses = [(socket.AF_INET, ('www.python.org', 80))]
- if support.IPV6_ENABLED:
- addresses.extend((
- (socket.AF_INET6, ('www.python.org', 80)),
- (socket.AF_INET6, ('www.python.org', 80, 0, 0)),
- ))
-
- for family, address in addresses:
- for sock_type in (socket.SOCK_STREAM, socket.SOCK_DGRAM):
- sock = socket.socket(family, sock_type)
- with sock:
- sock.setblocking(False)
- connect = self.loop.sock_connect(sock, address)
- with self.assertRaises(ValueError) as cm:
- self.loop.run_until_complete(connect)
- self.assertIn('address must be resolved',
- str(cm.exception))
-
def test_remove_fds_after_closing(self):
loop = self.create_event_loop()
callback = lambda: None