26
26
ssl = support .import_module ("ssl" )
27
27
28
28
Py_DEBUG = hasattr (sys , 'gettotalrefcount' )
29
- Py_DEBUG_Win32_IoT = Py_DEBUG and platform .win32_is_iot ()
29
+ Py_DEBUG_Win32 = Py_DEBUG and platform .win32_is_iot ()
30
30
31
31
PROTOCOLS = sorted (ssl ._PROTOCOL_NAMES )
32
32
HOST = support .HOST
@@ -1347,7 +1347,7 @@ def test_load_verify_cadata(self):
1347
1347
ctx .load_verify_locations (cadata = b"broken" )
1348
1348
1349
1349
1350
- @unittest .skipIf (sys . platform == 'win32' and '' and Py_DEBUG_Win32_IoT , "Crashes on debug builds on Windows IoT " )
1350
+ @unittest .skipIf (Py_DEBUG_Win32 , "Avoid mixing debug/release CRT on Windows" )
1351
1351
def test_load_dh_params (self ):
1352
1352
ctx = ssl .SSLContext (ssl .PROTOCOL_TLS_SERVER )
1353
1353
ctx .load_dh_params (DHFILE )
@@ -1648,7 +1648,7 @@ def test_str(self):
1648
1648
self .assertEqual (str (e ), "foo" )
1649
1649
self .assertEqual (e .errno , 1 )
1650
1650
1651
- @unittest .skipIf (Py_DEBUG_Win32_IoT , "Crashes on debug builds on Windows IoT " )
1651
+ @unittest .skipIf (Py_DEBUG_Win32 , "Avoid mixing debug/release CRT on Windows" )
1652
1652
def test_lib_reason (self ):
1653
1653
# Test the library and reason attributes
1654
1654
ctx = ssl .SSLContext (ssl .PROTOCOL_TLS_CLIENT )
@@ -3829,7 +3829,7 @@ def test_compression_disabled(self):
3829
3829
sni_name = hostname )
3830
3830
self .assertIs (stats ['compression' ], None )
3831
3831
3832
- @unittest .skipIf (Py_DEBUG_Win32_IoT , "Crashes on debug builds on Windows IoT " )
3832
+ @unittest .skipIf (Py_DEBUG_Win32 , "Avoid mixing debug/release CRT on Windows" )
3833
3833
def test_dh_params (self ):
3834
3834
# Check we can get a connection with ephemeral Diffie-Hellman
3835
3835
client_context , server_context , hostname = testing_context ()
0 commit comments