Skip to content

Commit d344fa2

Browse files
committed
Preparing for 5.1.0 release.
1 parent e53a01c commit d344fa2

6 files changed

Lines changed: 18 additions & 10 deletions

CHANGELOG.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
5.1.0
2+
-----
3+
4+
- bpo-44185: :func:`unittest.mock.mock_open` will call the :func:`close`
5+
method of the file handle mock when it is exiting from the context
6+
manager. Patch by Samet Yaslan.
7+
8+
- gh-94924: :func:`unittest.mock.create_autospec` now properly returns
9+
coroutine functions compatible with :func:`inspect.iscoroutinefunction`
10+
11+
- bpo-17013: Add ``ThreadingMock`` to :mod:`unittest.mock` that can be used
12+
to create Mock objects that can wait until they are called. Patch by
13+
Karthikeyan Singaravelan and Mario Corchero.
14+
15+
- bpo-41768: :mod:`unittest.mock` speccing no longer calls class properties.
16+
Patch by Melanie Witt.
17+
118
5.0.2
219
-----
320

NEWS.d/2019-09-13-13-28-10.bpo-17013.NWcgE3.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

NEWS.d/2020-09-16-16-53-06.bpo-41768.8_fWkC.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

NEWS.d/2021-06-24-20-45-03.bpo-44185.ZHb8yJ.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

NEWS.d/2022-07-18-14-20-56.gh-issue-94924.X0buz2.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

mock/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import mock.mock as _mock
88
from mock.mock import *
99

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

0 commit comments

Comments
 (0)