diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-10-14 21:03:13 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-10-14 21:03:13 (GMT) |
commit | c7dc55eb157df2f9d233735920b08066ab9f3329 (patch) | |
tree | dc50fd11136302e59e2bd40d25d8bd601b76bc5c /Lib/test | |
parent | 0eb1896a8fb86464b84f57a51a5352a86eee001d (diff) | |
parent | f67f4602426be4de9b0d0124cb99ecc5edbd70aa (diff) | |
download | cpython-c7dc55eb157df2f9d233735920b08066ab9f3329.zip cpython-c7dc55eb157df2f9d233735920b08066ab9f3329.tar.gz cpython-c7dc55eb157df2f9d233735920b08066ab9f3329.tar.bz2 |
Merge 3.4 (asyncio)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_windows_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_windows_utils.py b/Lib/test/test_asyncio/test_windows_utils.py index 7ea3a6d..3e7a211 100644 --- a/Lib/test/test_asyncio/test_windows_utils.py +++ b/Lib/test/test_asyncio/test_windows_utils.py @@ -33,6 +33,8 @@ class WinsocketpairTests(unittest.TestCase): ssock, csock = windows_utils.socketpair(family=socket.AF_INET6) self.check_winsocketpair(ssock, csock) + @unittest.skipIf(hasattr(socket, 'socketpair'), + 'socket.socketpair is available') @mock.patch('asyncio.windows_utils.socket') def test_winsocketpair_exc(self, m_socket): m_socket.AF_INET = socket.AF_INET @@ -51,6 +53,8 @@ class WinsocketpairTests(unittest.TestCase): self.assertRaises(ValueError, windows_utils.socketpair, proto=1) + @unittest.skipIf(hasattr(socket, 'socketpair'), + 'socket.socketpair is available') @mock.patch('asyncio.windows_utils.socket') def test_winsocketpair_close(self, m_socket): m_socket.AF_INET = socket.AF_INET |