Skip to content

Commit

Permalink
Preparing for 5.1.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjw296 committed Jul 11, 2023
1 parent e53a01c commit d344fa2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.rst
@@ -1,3 +1,20 @@
5.1.0
-----

- bpo-44185: :func:`unittest.mock.mock_open` will call the :func:`close`
method of the file handle mock when it is exiting from the context
manager. Patch by Samet Yaslan.

- gh-94924: :func:`unittest.mock.create_autospec` now properly returns
coroutine functions compatible with :func:`inspect.iscoroutinefunction`

- bpo-17013: Add ``ThreadingMock`` to :mod:`unittest.mock` that can be used
to create Mock objects that can wait until they are called. Patch by
Karthikeyan Singaravelan and Mario Corchero.

- bpo-41768: :mod:`unittest.mock` speccing no longer calls class properties.
Patch by Melanie Witt.

5.0.2
-----

Expand Down
3 changes: 0 additions & 3 deletions NEWS.d/2019-09-13-13-28-10.bpo-17013.NWcgE3.rst

This file was deleted.

2 changes: 0 additions & 2 deletions NEWS.d/2020-09-16-16-53-06.bpo-41768.8_fWkC.rst

This file was deleted.

3 changes: 0 additions & 3 deletions NEWS.d/2021-06-24-20-45-03.bpo-44185.ZHb8yJ.rst

This file was deleted.

1 change: 0 additions & 1 deletion NEWS.d/2022-07-18-14-20-56.gh-issue-94924.X0buz2.rst

This file was deleted.

2 changes: 1 addition & 1 deletion mock/__init__.py
Expand Up @@ -7,7 +7,7 @@
import mock.mock as _mock
from mock.mock import *

__version__ = '5.0.2'
__version__ = '5.1.0'
version_info = tuple(int(p) for p in
re.match(r'(\d+).(\d+).(\d+)', __version__).groups())

Expand Down

0 comments on commit d344fa2

Please sign in to comment.