]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use relative imports in mock and its tests to help backporting (GH-18197)
authorChris Withers <chris@withers.org>
Mon, 27 Jan 2020 14:11:19 +0000 (14:11 +0000)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2020 14:11:19 +0000 (14:11 +0000)
commitc7dd3c7d87d6961756d99b57aa13db7c7a03e1f8
tree9138a9b9d594032e15819f1068e4c828f099b3cb
parent997443c14cc29e5616b9f3d7c337e89fda60de11
Use relative imports in mock and its tests to help backporting (GH-18197)

* asyncio.run only available in 3.8+

* iscoroutinefunction has important bungfixes in 3.8

* IsolatedAsyncioTestCase only available in 3.8+
Lib/unittest/mock.py
Lib/unittest/test/testmock/testasync.py
Lib/unittest/test/testmock/testmagicmethods.py