]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40275: Avoid importing asyncio in test.support (GH-19600)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 25 Apr 2020 07:04:10 +0000 (10:04 +0300)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2020 07:04:10 +0000 (10:04 +0300)
commit3c8a5b459d68b4337776ada1e04f5b33f90a2275
treef86166f552b0e9ff210dc81350b9b41178815b5d
parentd4f3923d5901ef1ccdbe6ad6c5a753af90832a0f
bpo-40275: Avoid importing asyncio in test.support (GH-19600)

* Import asyncio lazily in unittest (only when IsolatedAsyncioTestCase is used).
* Import asyncio.events lazily in test.support.
Lib/test/support/__init__.py
Lib/unittest/__init__.py
Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst [new file with mode: 0644]