diff options
| author | Yury Selivanov <yury@magic.io> | 2016-10-07 12:40:22 -0400 |
|---|---|---|
| committer | Yury Selivanov <yury@magic.io> | 2016-10-07 12:40:22 -0400 |
| commit | 3df053e556c27dd8ed8fd20e1f1d652284132ff1 (patch) | |
| tree | 5272dead33a17d0c524c274600fa64b9495d74ff /Lib/test | |
| parent | ac5084b6c760ff5e6469854373fe6c3c81804f87 (diff) | |
| parent | 36e7e97d621863e6e3e3baeb22909ec06e720639 (diff) | |
| download | cpython-git-3df053e556c27dd8ed8fd20e1f1d652284132ff1.tar.gz | |
Merge 3.5 (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') |
