diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-15 13:25:08 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-15 13:25:08 (GMT) |
| commit | 9fef5244ebbfddf18889d2b9669f50e2ee3fc449 (patch) | |
| tree | d3854a28ee4ad0bebc5ea4384513ce2aea1523e2 /Lib/test/test_asyncio/test_sslproto.py | |
| parent | d021c1d3953f95745e30ec4148f324a8d28a29d0 (diff) | |
| parent | ab8848bc2a64930e0e9a2e56592bb692fb31d9e9 (diff) | |
| download | cpython-9fef5244ebbfddf18889d2b9669f50e2ee3fc449.zip cpython-9fef5244ebbfddf18889d2b9669f50e2ee3fc449.tar.gz cpython-9fef5244ebbfddf18889d2b9669f50e2ee3fc449.tar.bz2 | |
Merge 3.4 (asyncio)
Diffstat (limited to 'Lib/test/test_asyncio/test_sslproto.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_sslproto.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py index 053fefe..812dedb 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++ b/Lib/test/test_asyncio/test_sslproto.py @@ -33,6 +33,7 @@ class SslProtoHandshakeTests(test_utils.TestCase): waiter.cancel() transport = mock.Mock() sslpipe = mock.Mock() + sslpipe.shutdown.return_value = b'' sslpipe.do_handshake.side_effect = do_handshake with mock.patch('asyncio.sslproto._SSLPipe', return_value=sslpipe): ssl_proto.connection_made(transport) @@ -40,6 +41,9 @@ class SslProtoHandshakeTests(test_utils.TestCase): with test_utils.disable_logger(): self.loop.run_until_complete(handshake_fut) + # Close the transport + ssl_proto._app_transport.close() + if __name__ == '__main__': unittest.main() |
