summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-16 16:02:10 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-16 16:02:10 (GMT)
commit1314f06293393bf5ec403a39dffe3f4c33b88bc4 (patch)
tree203e5540318e9c3555222b16eb7943bcfe166352 /Lib/test
parent9b7f9e6c5a4f0d31333b7f10fac0c6c92b8e53bc (diff)
downloadcpython-1314f06293393bf5ec403a39dffe3f4c33b88bc4.zip
cpython-1314f06293393bf5ec403a39dffe3f4c33b88bc4.tar.gz
cpython-1314f06293393bf5ec403a39dffe3f4c33b88bc4.tar.bz2
asyncio: test_selector_events: remove duplicate call to _on_handshake() method
The _SelectorSslTransport constructor already calls it.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_selector_events.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py
index 198b14f..c0f388d 100644
--- a/Lib/test/test_asyncio/test_selector_events.py
+++ b/Lib/test/test_asyncio/test_selector_events.py
@@ -1089,17 +1089,17 @@ class SelectorSslTransportTests(test_utils.TestCase):
self.assertIsNone(waiter.result())
def test_on_handshake_reader_retry(self):
+ self.loop.set_debug(False)
self.sslsock.do_handshake.side_effect = ssl.SSLWantReadError
transport = _SelectorSslTransport(
self.loop, self.sock, self.protocol, self.sslcontext)
- transport._on_handshake(None)
self.loop.assert_reader(1, transport._on_handshake, None)
def test_on_handshake_writer_retry(self):
+ self.loop.set_debug(False)
self.sslsock.do_handshake.side_effect = ssl.SSLWantWriteError
transport = _SelectorSslTransport(
self.loop, self.sock, self.protocol, self.sslcontext)
- transport._on_handshake(None)
self.loop.assert_writer(1, transport._on_handshake, None)
def test_on_handshake_exc(self):
@@ -1120,7 +1120,7 @@ class SelectorSslTransportTests(test_utils.TestCase):
exc = BaseException()
self.sslsock.do_handshake.side_effect = exc
with test_utils.disable_logger():
- self.assertRaises(BaseException, transport._on_handshake, None)
+ self.assertRaises(BaseException, transport._on_handshake, 0)
self.assertTrue(self.sslsock.close.called)
self.assertTrue(transport._waiter.done())
self.assertIs(exc, transport._waiter.exception())