Skip to content

Commit d074611

Browse files
authored
Fix python 3.11 test coverage issues (#512)
1 parent ff4a20a commit d074611

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

gql/transport/aiohttp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def connection_lost(exc, orig_lost):
147147
all_is_lost.set()
148148

149149
def eof_received(orig_eof_received):
150-
try:
150+
try: # pragma: no cover
151151
orig_eof_received()
152152
except AttributeError: # pragma: no cover
153153
# It may happen that eof_received() is called after

gql/transport/phoenix_channel_websockets.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,8 @@ def _validate_data_response(d: Any, label: str) -> dict:
342342

343343
elif status == "timeout":
344344
raise TransportQueryError("reply timeout", query_id=answer_id)
345-
else:
346-
# missing or unrecognized status, just continue
347-
pass
345+
346+
# In case of missing or unrecognized status, just continue
348347

349348
elif event == "phx_error":
350349
# Sent if the channel has crashed

0 commit comments

Comments
 (0)