diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-25 07:04:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 07:04:10 (GMT) |
commit | 3c8a5b459d68b4337776ada1e04f5b33f90a2275 (patch) | |
tree | f86166f552b0e9ff210dc81350b9b41178815b5d /Misc | |
parent | d4f3923d5901ef1ccdbe6ad6c5a753af90832a0f (diff) | |
download | cpython-3c8a5b459d68b4337776ada1e04f5b33f90a2275.zip cpython-3c8a5b459d68b4337776ada1e04f5b33f90a2275.tar.gz cpython-3c8a5b459d68b4337776ada1e04f5b33f90a2275.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst b/Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst new file mode 100644 index 0000000..2093589 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst @@ -0,0 +1,2 @@ +The :mod:`asyncio` package is now imported lazily in :mod:`unittest` only +when the :class:`~unittest.IsolatedAsyncioTestCase` class is used. |