Skip to content

Commit

Permalink
Merge branch 'master' into chore_bump_pytest_cov_5_0
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz authored Jul 14, 2024
2 parents 9aef01b + e63ed0f commit 0b6809c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8"]
os: [ubuntu-20.04, windows-latest]
exclude:
- os: windows-latest
python-version: "3.7"
- os: windows-latest
python-version: "3.9"
- os: windows-latest
Expand Down
6 changes: 5 additions & 1 deletion gql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,11 @@ async def connect_async(self, reconnecting=False, **kwargs):
self.session = ReconnectingAsyncClientSession(client=self, **kwargs)
await self.session.start_connecting_task()
else:
await self.transport.connect()
try:
await self.transport.connect()
except Exception as e:
await self.transport.close()
raise e
self.session = AsyncClientSession(client=self)

# Get schema from transport if needed
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
1 change: 0 additions & 1 deletion tests/test_websocket_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ async def test_websocket_connect_failed_with_authentication_in_connection_init(

await session.execute(query1)

await asyncio.sleep(1)
assert transport.websocket is None


Expand Down

0 comments on commit 0b6809c

Please sign in to comment.