Skip to content

Commit 52202c5

Browse files
committed
Run linter
1 parent 37a4687 commit 52202c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/server_connectivity_tests/test_direct_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_server_triggers_unexpected_connection_error(self):
159159

160160
# When testing connectivity against it
161161
# It fails and the actual error / root cause is mentioned in the message
162-
with pytest.raises(ConnectionToServerFailed, match="unrecognized name") as e:
162+
with pytest.raises(ConnectionToServerFailed, match="unrecognized name"):
163163
check_connectivity_to_server(
164164
server_location=server_location,
165165
network_configuration=ServerNetworkConfiguration.default_for_server_location(server_location),
@@ -175,7 +175,7 @@ def test_server_only_supports_sslv2(self):
175175

176176
# When testing connectivity against it
177177
# It fails and the fact that the server only supports SSL 2.0 is mentioned in the error
178-
with pytest.raises(ConnectionToServerFailed, match="SSL 2.0") as e:
178+
with pytest.raises(ConnectionToServerFailed, match="SSL 2.0"):
179179
check_connectivity_to_server(
180180
server_location=server_location,
181181
network_configuration=ServerNetworkConfiguration.default_for_server_location(server_location),

0 commit comments

Comments
 (0)