]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Clarify and fix assertions that mocks have not been awaited (GH-18196)
authorChris Withers <chris@withers.org>
Mon, 27 Jan 2020 14:55:56 +0000 (14:55 +0000)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2020 14:55:56 +0000 (14:55 +0000)
commita46575a8f2ded8b49e26c25bb67192e1500e76ca
tree4e6331742b11b7fbda4197118ec21793ae8dce11
parentc7dd3c7d87d6961756d99b57aa13db7c7a03e1f8
Clarify and fix assertions that mocks have not been awaited (GH-18196)

- The gc.collect is needed for other implementations, such as pypy
- Using context managers over multiple lines will only catch the warning from the first line in the context!
- remove a skip for a test that no longer fails on pypy
Lib/unittest/test/testmock/testasync.py
Lib/unittest/test/testmock/testmagicmethods.py