Skip to content

Commit fad3144

Browse files
committed
Fix typo in error message
1 parent 0d25c19 commit fad3144

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

neo4j/_async/io/_bolt.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,12 @@ async def open(
315315
AsyncBoltSocket.close_socket(s)
316316

317317
supported_versions = cls.protocol_handlers().keys()
318-
raise BoltHandshakeError("The Neo4J server does not support communication with this driver. This driver have support for Bolt Protocols {}".format(supported_versions), address=address, request_data=handshake, response_data=data)
318+
raise BoltHandshakeError(
319+
"The Neo4J server does not support communication with this "
320+
"driver. This driver has support for Bolt protocols "
321+
"{}".format(tuple(map(str, supported_versions))),
322+
address=address, request_data=handshake, response_data=data
323+
)
319324

320325
connection = bolt_cls(
321326
address, s, pool_config.max_connection_lifetime, auth=auth,

neo4j/_sync/io/_bolt.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,12 @@ def open(
315315
BoltSocket.close_socket(s)
316316

317317
supported_versions = cls.protocol_handlers().keys()
318-
raise BoltHandshakeError("The Neo4J server does not support communication with this driver. This driver have support for Bolt Protocols {}".format(supported_versions), address=address, request_data=handshake, response_data=data)
318+
raise BoltHandshakeError(
319+
"The Neo4J server does not support communication with this "
320+
"driver. This driver has support for Bolt protocols "
321+
"{}".format(tuple(map(str, supported_versions))),
322+
address=address, request_data=handshake, response_data=data
323+
)
319324

320325
connection = bolt_cls(
321326
address, s, pool_config.max_connection_lifetime, auth=auth,

testkitbackend/test_config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
"skips": {
33
"stub.retry.test_retry_clustering.TestRetryClustering.test_retry_ForbiddenOnReadOnlyDatabase_ChangingWriter":
44
"Test makes assumptions about how verify_connectivity is implemented",
5+
"stub.authorization.test_authorization.TestAuthorizationV5x0.test_should_retry_on_auth_expired_on_begin_using_tx_function":
6+
"Flaky: test requires the driver to contact servers in a specific order",
57
"stub.authorization.test_authorization.TestAuthorizationV4x3.test_should_retry_on_auth_expired_on_begin_using_tx_function":
68
"Flaky: test requires the driver to contact servers in a specific order",
79
"stub.authorization.test_authorization.TestAuthorizationV3.test_should_retry_on_auth_expired_on_begin_using_tx_function":
810
"Flaky: test requires the driver to contact servers in a specific order",
911
"stub.authorization.test_authorization.TestAuthorizationV4x1.test_should_retry_on_auth_expired_on_begin_using_tx_function":
1012
"Flaky: test requires the driver to contact servers in a specific order",
13+
"stub.authorization.test_authorization.TestAuthorizationV5x0.test_should_fail_on_token_expired_on_begin_using_tx_function":
14+
"Flaky: test requires the driver to contact servers in a specific order",
1115
"stub.authorization.test_authorization.TestAuthorizationV4x3.test_should_fail_on_token_expired_on_begin_using_tx_function":
1216
"Flaky: test requires the driver to contact servers in a specific order",
1317
"stub.authorization.test_authorization.TestAuthorizationV3.test_should_fail_on_token_expired_on_begin_using_tx_function":

0 commit comments

Comments
 (0)