diff options
author | Jason Fried <fried@fb.com> | 2019-11-21 00:27:51 (GMT) |
---|---|---|
committer | Lisa Roach <lisaroach14@gmail.com> | 2019-11-21 00:27:51 (GMT) |
commit | 046442d02bcc6e848e71e93e47f6cde9e279e993 (patch) | |
tree | cb5e73fad1c8345b112aa9fee0ea0558339241e1 /Misc/NEWS.d | |
parent | e5d1f734db135e284af8e8868e7ccc85355952b9 (diff) | |
download | cpython-046442d02bcc6e848e71e93e47f6cde9e279e993.zip cpython-046442d02bcc6e848e71e93e47f6cde9e279e993.tar.gz cpython-046442d02bcc6e848e71e93e47f6cde9e279e993.tar.bz2 |
bpo-38857: AsyncMock fix for awaitable values and StopIteration fix [3.8] (GH-17269)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-11-19-16-28-25.bpo-38857.YPUkU9.rst | 4 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-11-19-16-30-46.bpo-38859.AZUzL8.rst | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-11-19-16-28-25.bpo-38857.YPUkU9.rst b/Misc/NEWS.d/next/Library/2019-11-19-16-28-25.bpo-38857.YPUkU9.rst new file mode 100644 index 0000000..f28df28 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-11-19-16-28-25.bpo-38857.YPUkU9.rst @@ -0,0 +1,4 @@ +AsyncMock fix for return values that are awaitable types. This also covers +side_effect iterable values that happend to be awaitable, and wraps +callables that return an awaitable type. Before these awaitables were being +awaited instead of being returned as is. diff --git a/Misc/NEWS.d/next/Library/2019-11-19-16-30-46.bpo-38859.AZUzL8.rst b/Misc/NEWS.d/next/Library/2019-11-19-16-30-46.bpo-38859.AZUzL8.rst new file mode 100644 index 0000000..c059539 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-11-19-16-30-46.bpo-38859.AZUzL8.rst @@ -0,0 +1,3 @@ +AsyncMock now returns StopAsyncIteration on the exaustion of a side_effects +iterable. Since PEP-479 its Impossible to raise a StopIteration exception +from a coroutine. |