From bd337365cb685ea6dff0aabb27eb51a40a95f966 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 2 Aug 2020 10:41:37 -0300 Subject: [PATCH 1/2] Add note about unittest.TestCase not being supported --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index 917dd52f..1b1bc03b 100644 --- a/README.rst +++ b/README.rst @@ -173,6 +173,12 @@ Only test coroutines will be affected (by default, coroutines prefixed by .. |pytestmark| replace:: ``pytestmark`` .. _pytestmark: http://doc.pytest.org/en/latest/example/markers.html#marking-whole-classes-or-modules +Note about unittest +------------------- + +Test classes subclassing the standard `unittest `__ library are not supported, users +are recommended to use one of the async frameworks available for that such as `asynctest `__. + Changelog --------- 0.15.0 (UNRELEASED) From 918b71c0ffafc49cd3c872038a144236477fe940 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 2 Aug 2020 13:50:42 -0300 Subject: [PATCH 2/2] Mention IsolatedAsyncioTestCase --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 1b1bc03b..0c8b1124 100644 --- a/README.rst +++ b/README.rst @@ -177,7 +177,8 @@ Note about unittest ------------------- Test classes subclassing the standard `unittest `__ library are not supported, users -are recommended to use one of the async frameworks available for that such as `asynctest `__. +are recommended to use `unitest.IsolatedAsyncioTestCase `__ +or an async framework such as `asynctest `__. Changelog ---------