File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,7 @@ def test_connect_wiznet5k_https_not_supported( # pylint: disable=unused-argumen
53
53
mock_pool = mocket .MocketPool ()
54
54
radio = mocket .MockRadio .WIZNET5K ()
55
55
old_version = (WIZNET5K_SSL_SUPPORT_VERSION [0 ] - 1 , 0 , 0 )
56
- with mock .patch (
57
- "sys.implementation" ,
58
- (None , old_version )
59
- ):
56
+ with mock .patch ("sys.implementation" , (None , old_version )):
60
57
ssl_context = adafruit_connection_manager .get_radio_ssl_context (radio )
61
58
connection_manager = adafruit_connection_manager .ConnectionManager (mock_pool )
62
59
@@ -72,9 +69,6 @@ def test_connect_wiznet5k_https_supported( # pylint: disable=unused-argument
72
69
adafruit_wiznet5k_with_ssl_socket_module ,
73
70
):
74
71
radio = mocket .MockRadio .WIZNET5K ()
75
- with mock .patch (
76
- "sys.implementation" ,
77
- (None , WIZNET5K_SSL_SUPPORT_VERSION )
78
- ):
72
+ with mock .patch ("sys.implementation" , (None , WIZNET5K_SSL_SUPPORT_VERSION )):
79
73
ssl_context = adafruit_connection_manager .get_radio_ssl_context (radio )
80
74
assert isinstance (ssl_context , ssl .SSLContext )
You can’t perform that action at this time.
0 commit comments