summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_unix_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-29 21:09:56 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-29 21:09:56 (GMT)
commit66565649b53b39a11306d96935be8a4810a70f3f (patch)
tree852dc7f6f6272a6cfb1433a3067dac569adb3d08 /Lib/test/test_asyncio/test_unix_events.py
parentacc6e7596f515c2e0a3376a5ef647f531f22a824 (diff)
parent9c9f1f10d391ff3458a80fc3d0110870d50012e2 (diff)
downloadcpython-66565649b53b39a11306d96935be8a4810a70f3f.zip
cpython-66565649b53b39a11306d96935be8a4810a70f3f.tar.gz
cpython-66565649b53b39a11306d96935be8a4810a70f3f.tar.bz2
Merge with Python 3.4 (asyncio)
- Close #22063: socket operations (socket,recv, sock_sendall, sock_connect, sock_accept) now raise an exception in debug mode if sockets are in blocking mode. - asyncio: Use the new os.set_blocking() function of Python 3.5 if available
Diffstat (limited to 'Lib/test/test_asyncio/test_unix_events.py')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index d185533..e397598 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -306,7 +306,7 @@ class UnixReadPipeTransportTests(test_utils.TestCase):
self.pipe = mock.Mock(spec_set=io.RawIOBase)
self.pipe.fileno.return_value = 5
- blocking_patcher = mock.patch('os.set_blocking')
+ blocking_patcher = mock.patch('asyncio.unix_events._set_nonblocking')
blocking_patcher.start()
self.addCleanup(blocking_patcher.stop)
@@ -469,7 +469,7 @@ class UnixWritePipeTransportTests(test_utils.TestCase):
self.pipe = mock.Mock(spec_set=io.RawIOBase)
self.pipe.fileno.return_value = 5
- blocking_patcher = mock.patch('os.set_blocking')
+ blocking_patcher = mock.patch('asyncio.unix_events._set_nonblocking')
blocking_patcher.start()
self.addCleanup(blocking_patcher.stop)