summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-11-21 22:47:41 (GMT)
committerYury Selivanov <yury@magic.io>2016-11-21 22:47:41 (GMT)
commit5cb0c09fa6384990da0f2c47b92bd0ae8f87ff5d (patch)
tree50a00554d94ff537a857ffea693546d5cda36e9b /Lib/test
parentbf87126a636bddf2d9a8f432215fe2efb98ba8fe (diff)
parentdab05847385c14fe76773d30f75f2bdc5b2ab7e3 (diff)
downloadcpython-5cb0c09fa6384990da0f2c47b92bd0ae8f87ff5d.zip
cpython-5cb0c09fa6384990da0f2c47b92bd0ae8f87ff5d.tar.gz
cpython-5cb0c09fa6384990da0f2c47b92bd0ae8f87ff5d.tar.bz2
Merge 3.5 (issue #28652)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 2a93923..3f1ec65 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -1047,22 +1047,20 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
MyProto, 'example.com', 80, sock=object())
self.assertRaises(ValueError, self.loop.run_until_complete, coro)
- @unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'no Unix sockets')
def test_create_connection_wrong_sock(self):
- sock = socket.socket(socket.AF_UNIX)
+ sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
with sock:
coro = self.loop.create_connection(MyProto, sock=sock)
with self.assertRaisesRegex(ValueError,
- 'A TCP Stream Socket was expected'):
+ 'A Stream Socket was expected'):
self.loop.run_until_complete(coro)
- @unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'no Unix sockets')
def test_create_server_wrong_sock(self):
- sock = socket.socket(socket.AF_UNIX)
+ sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
with sock:
coro = self.loop.create_server(MyProto, sock=sock)
with self.assertRaisesRegex(ValueError,
- 'A TCP Stream Socket was expected'):
+ 'A Stream Socket was expected'):
self.loop.run_until_complete(coro)
@unittest.skipUnless(hasattr(socket, 'SOCK_NONBLOCK'),