cpython: c2e018c54689 (original) (raw)
Mercurial > cpython
changeset 86560:c2e018c54689
Fix asyncio issue #19293 (hangs on AIX). [#19293]
Guido van Rossum guido@dropbox.com | |
---|---|
date | Mon, 21 Oct 2013 21:28:45 -0700 |
parents | f33cc4a175a4 |
children | b5cc822d5bf0 |
files | Lib/test/test_asyncio/test_events.py |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-)[+] [-] Lib/test/test_asyncio/test_events.py 12 |
line wrap: on
line diff
--- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -887,9 +887,6 @@ class EventLoopTestsMixin: @unittest.skipUnless(sys.platform != 'win32', "Don't support pipes for Windows")
Issue #19293
- @unittest.skipIf(sys.platform.startswith("aix"),
def test_write_pipe_disconnect_on_close(self): proto = None transport = None'cannot be interrupted with signal on AIX')[](#l1.9)
@@ -899,8 +896,8 @@ class EventLoopTestsMixin: proto = MyWritePipeProto(loop=self.loop) return proto
rpipe, wpipe = os.pipe()[](#l1.17)
pipeobj = io.open(wpipe, 'wb', 1024)[](#l1.18)
rsock, wsock = self.loop._socketpair()[](#l1.19)
pipeobj = io.open(wsock.detach(), 'wb', 1024)[](#l1.20)
@tasks.coroutine def connect(): @@ -916,11 +913,10 @@ class EventLoopTestsMixin: self.assertEqual('CONNECTED', proto.state) transport.write(b'1')
test_utils.run_briefly(self.loop)[](#l1.28)
data = os.read(rpipe, 1024)[](#l1.29)
data = self.loop.run_until_complete(self.loop.sock_recv(rsock, 1024))[](#l1.30) self.assertEqual(b'1', data)[](#l1.31)
os.close(rpipe)[](#l1.33)
rsock.close()[](#l1.34)
self.loop.run_until_complete(proto.done) self.assertEqual('CLOSED', proto.state)