File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1197,7 +1197,12 @@ async def test_match(self):
1197
1197
@gen_test
1198
1198
async def test_no_match (self ):
1199
1199
stream = SSLIOStream (socket .socket (), ssl_options = self .client_ssl_ctx )
1200
- with ExpectLog (gen_log , ".*alert bad certificate" , level = logging .WARNING ):
1200
+ with ExpectLog (
1201
+ gen_log ,
1202
+ ".*alert bad certificate" ,
1203
+ level = logging .WARNING ,
1204
+ required = platform .system () != "Windows" ,
1205
+ ):
1201
1206
with self .assertRaises (ssl .SSLCertVerificationError ):
1202
1207
with ExpectLog (
1203
1208
gen_log ,
@@ -1210,7 +1215,9 @@ async def test_no_match(self):
1210
1215
)
1211
1216
# The server logs a warning while cleaning up the failed connection.
1212
1217
# Unfortunately there's no good hook to wait for this logging.
1213
- await asyncio .sleep (0.1 )
1218
+ # It doesn't seem to happen on windows; I'm not sure why.
1219
+ if platform .system () != "Windows" :
1220
+ await asyncio .sleep (0.1 )
1214
1221
1215
1222
@gen_test
1216
1223
async def test_check_disabled (self ):
You can’t perform that action at this time.
0 commit comments