Skip to content

Commit e53e384

Browse files
committed
PYTHON-5781 Fix inaccurate comment: second field in compression header is uncompressed_size
1 parent 6454642 commit e53e384

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_network_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class TestPyMongoProtocolProcessCompressionHeader(unittest.TestCase):
280280
def test_returns_op_code_and_compressor_id(self):
281281
async def _test():
282282
proto = await _make_protocol()
283-
# op_code=2013, unknown int=0, compressor_id=1 (snappy)
283+
# op_code=2013, uncompressed_size=0, compressor_id=1 (snappy)
284284
data = struct.pack("<iiB", 2013, 0, 1)
285285
proto._compression_header = memoryview(bytearray(data))
286286
return proto.process_compression_header()

0 commit comments

Comments
 (0)