Skip to content

Commit aeb0d41

Browse files
committed
PYTHON-2740 Bump maxWireVersion for MongoDB 5.0
1 parent 990a998 commit aeb0d41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pymongo/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# What this version of PyMongo supports.
5959
MIN_SUPPORTED_SERVER_VERSION = "2.6"
6060
MIN_SUPPORTED_WIRE_VERSION = 2
61-
MAX_SUPPORTED_WIRE_VERSION = 9
61+
MAX_SUPPORTED_WIRE_VERSION = 13
6262

6363
# Frequency to call ismaster on servers, in seconds.
6464
HEARTBEAT_FREQUENCY = 10

test/test_topology.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,16 +587,16 @@ def test_wire_version(self):
587587
'ismaster': True,
588588
'setName': 'rs',
589589
'hosts': ['a'],
590-
'minWireVersion': 11,
591-
'maxWireVersion': 12})
590+
'minWireVersion': 21,
591+
'maxWireVersion': 22})
592592

593593
try:
594594
t.select_servers(any_server_selector)
595595
except ConfigurationError as e:
596596
# Error message should say which server failed and why.
597597
self.assertEqual(
598598
str(e),
599-
"Server at a:27017 requires wire version 11, but this version "
599+
"Server at a:27017 requires wire version 21, but this version "
600600
"of PyMongo only supports up to %d."
601601
% (common.MAX_SUPPORTED_WIRE_VERSION,))
602602
else:

0 commit comments

Comments
 (0)