diff options
author | Thomas Grainger <tagrain@gmail.com> | 2023-10-31 22:03:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 22:03:54 (GMT) |
commit | 770530679e89b06f33655b34a8c466ed906842fe (patch) | |
tree | a275b0cff7d2213548eb067bdeb8217dda50490b /Doc | |
parent | f6a02327b5fcdc10df855985ca9d2d9dc2a0a46f (diff) | |
download | cpython-770530679e89b06f33655b34a8c466ed906842fe.zip cpython-770530679e89b06f33655b34a8c466ed906842fe.tar.gz cpython-770530679e89b06f33655b34a8c466ed906842fe.tar.bz2 |
gh-110774: allow setting the Runner(loop_factory=...) from IsolatedAsyncioTestCase (#110776)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 21abc58..c90c554 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1571,6 +1571,14 @@ Test cases .. versionadded:: 3.8 + .. attribute:: loop_factory + + The *loop_factory* passed to :class:`asyncio.Runner`. Override + in subclasses with :class:`asyncio.EventLoop` to avoid using the + asyncio policy system. + + .. versionadded:: 3.13 + .. coroutinemethod:: asyncSetUp() Method called to prepare the test fixture. This is called after :meth:`setUp`. |