Skip to content

Commit

Permalink
Fix python 3.11 test coverage issues (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz authored Nov 16, 2024
1 parent ff4a20a commit d074611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gql/transport/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def connection_lost(exc, orig_lost):
all_is_lost.set()

def eof_received(orig_eof_received):
try:
try: # pragma: no cover
orig_eof_received()
except AttributeError: # pragma: no cover
# It may happen that eof_received() is called after
Expand Down
5 changes: 2 additions & 3 deletions gql/transport/phoenix_channel_websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,8 @@ def _validate_data_response(d: Any, label: str) -> dict:

elif status == "timeout":
raise TransportQueryError("reply timeout", query_id=answer_id)
else:
# missing or unrecognized status, just continue
pass

# In case of missing or unrecognized status, just continue

elif event == "phx_error":
# Sent if the channel has crashed
Expand Down

0 comments on commit d074611

Please sign in to comment.