Skip to content

Commit 95046b3

Browse files
authored
ci: fix bytearray type check error in python 3.13 (#10233)
1 parent 694d9b3 commit 95046b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async def read(self, max_bytes: int, timeout: typing.Optional[float] = None) ->
117117
else:
118118
data_bytes: typing.Optional[bytes] = message.get("bytes")
119119
if data_bytes is not None:
120-
event = wsproto.events.BytesMessage(data_bytes)
120+
event = wsproto.events.BytesMessage(bytearray(data_bytes))
121121
else:
122122
# If neither text nor bytes are provided, raise an error
123123
raise ValueError("websocket.send message missing 'text' or 'bytes'")

0 commit comments

Comments
 (0)