@@ -737,14 +737,6 @@ def client():
737737
738738 @unittest .skipIf (ssl is None , 'No ssl module' )
739739 def test_ssl_connect_accepted_socket (self ):
740- if (sys .platform == 'win32' and
741- sys .version_info < (3 , 5 ) and
742- isinstance (self .loop , proactor_events .BaseProactorEventLoop )
743- ):
744- raise unittest .SkipTest (
745- 'SSL not supported with proactor event loops before Python 3.5'
746- )
747-
748740 server_context = test_utils .simple_server_sslcontext ()
749741 client_context = test_utils .simple_client_sslcontext ()
750742
@@ -2206,17 +2198,15 @@ def test_handle_repr(self):
22062198 self .assertRegex (repr (h ), regex )
22072199
22082200 # partial method
2209- if sys .version_info >= (3 , 4 ):
2210- method = HandleTests .test_handle_repr
2211- cb = functools .partialmethod (method )
2212- filename , lineno = test_utils .get_function_source (method )
2213- h = asyncio .Handle (cb , (), self .loop )
2214-
2215- cb_regex = r'<function HandleTests.test_handle_repr .*>'
2216- cb_regex = (r'functools.partialmethod\(%s, , \)\(\)' % cb_regex )
2217- regex = (r'^<Handle %s at %s:%s>$'
2218- % (cb_regex , re .escape (filename ), lineno ))
2219- self .assertRegex (repr (h ), regex )
2201+ method = HandleTests .test_handle_repr
2202+ cb = functools .partialmethod (method )
2203+ filename , lineno = test_utils .get_function_source (method )
2204+ h = asyncio .Handle (cb , (), self .loop )
2205+
2206+ cb_regex = r'<function HandleTests.test_handle_repr .*>'
2207+ cb_regex = fr'functools.partialmethod\({ cb_regex } , , \)\(\)'
2208+ regex = fr'^<Handle { cb_regex } at { re .escape (filename )} :{ lineno } >$'
2209+ self .assertRegex (repr (h ), regex )
22202210
22212211 def test_handle_repr_debug (self ):
22222212 self .loop .get_debug .return_value = True
0 commit comments