Skip to content

Commit

Permalink
Merge 3.9 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer committed Feb 12, 2023
1 parent fecbe99 commit 3a8e65f
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 44 deletions.
15 changes: 15 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@

.. towncrier release notes start
3.8.4 (2023-02-12)
==================

Bugfixes
--------

- Fixed incorrectly overwriting cookies with the same name and domain, but different path.
`#6638 <https://github.com/aio-libs/aiohttp/issues/6638>`_
- Fixed ``ConnectionResetError`` not being raised after client disconnection in SSL environments.
`#7180 <https://github.com/aio-libs/aiohttp/issues/7180>`_


----


3.8.3 (2022-09-21)
==================

Expand Down
4 changes: 0 additions & 4 deletions CHANGES/3828.feature

This file was deleted.

4 changes: 0 additions & 4 deletions CHANGES/5494.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGES/5494.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6189.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6195.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6201.bugfix

This file was deleted.

2 changes: 0 additions & 2 deletions CHANGES/6205.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6240.doc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6274.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6276.doc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6278.doc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6305.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/6638.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/7180.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ Please add *aiohttp* tag to your question there.
Requirements
============

- Python >= 3.7
- async-timeout_
- charset-normalizer_
- multidict_
Expand Down
25 changes: 10 additions & 15 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,21 +288,16 @@ def __init_subclass__(cls: Type["ClientSession"]) -> None:
)

def __del__(self, _warnings: Any = warnings) -> None:
try:
if not self.closed:
_warnings.warn(
f"Unclosed client session {self!r}",
ResourceWarning,
source=self,
)
context = {"client_session": self, "message": "Unclosed client session"}
if self._source_traceback is not None:
context["source_traceback"] = self._source_traceback
self._loop.call_exception_handler(context)
except AttributeError:
# loop was not initialized yet,
# either self._connector or self._loop doesn't exist
pass
if not self.closed:
_warnings.warn(
f"Unclosed client session {self!r}",
ResourceWarning,
source=self,
)
context = {"client_session": self, "message": "Unclosed client session"}
if self._source_traceback is not None:
context["source_traceback"] = self._source_traceback
self._loop.call_exception_handler(context)

def request(
self, method: str, url: StrOrURL, **kwargs: Any
Expand Down
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ Continuous Integration.
Dependencies
============

- Python 3.7+
- *async_timeout*
- *charset-normalizer*
- *multidict*
Expand Down
1 change: 0 additions & 1 deletion docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ BodyPartReader
boolean
botocore
brotli
brotli
Brotli
brotlipy
bugfix
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ install_requires =
async_timeout >= 4.0, < 5.0
asynctest == 0.13.0; python_version<"3.8"
yarl >= 1.0, < 2.0
typing_extensions >= 3.7.4
typing_extensions >= 3.7.4; python_version<"3.8"
frozenlist >= 1.1.1
aiosignal >= 1.1.2

Expand Down
3 changes: 1 addition & 2 deletions tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2023,8 +2023,7 @@ async def handler(request):
session = aiohttp.ClientSession(connector=conn)
url = srv.make_url("/")

err = aiohttp.ClientConnectorCertificateError
with pytest.raises(err) as ctx:
with pytest.raises(aiohttp.ClientConnectorCertificateError) as ctx:
await session.get(url)

assert isinstance(ctx.value, aiohttp.ClientConnectorCertificateError)
Expand Down

0 comments on commit 3a8e65f

Please sign in to comment.