diff options
author | Yury Selivanov <yury@magic.io> | 2016-10-07 12:40:44 -0400 |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-10-07 12:40:44 -0400 |
commit | caae4dbbc6e43163b255b68ec82fb9b54efa039e (patch) | |
tree | effac64c57a3bf51b6b87cdbb8d5d0689b14fc84 /Lib/test | |
parent | 7bd4afec86849a57b48f375a9c4e0c32f0539dad (diff) | |
parent | 3df053e556c27dd8ed8fd20e1f1d652284132ff1 (diff) | |
download | cpython-git-caae4dbbc6e43163b255b68ec82fb9b54efa039e.tar.gz |
Merge 3.6 (asyncio)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_unix_events.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index 088ef408e5..0d54e3a6d4 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -273,7 +273,16 @@ class SelectorEventLoopUnixSocketTests(test_utils.TestCase): coro = self.loop.create_unix_server(lambda: None, path=None, sock=sock) with self.assertRaisesRegex(ValueError, - 'A UNIX Domain Socket was expected'): + 'A UNIX Domain Stream.*was expected'): + self.loop.run_until_complete(coro) + + def test_create_unix_connection_path_inetsock(self): + sock = socket.socket() + with sock: + coro = self.loop.create_unix_connection(lambda: None, path=None, + sock=sock) + with self.assertRaisesRegex(ValueError, + 'A UNIX Domain Stream.*was expected'): self.loop.run_until_complete(coro) @mock.patch('asyncio.unix_events.socket') |