[issue32972] unittest.TestCase coroutine support

Andrew Svetlov report at bugs.python.org
Tue Sep 10 15:39:39 EDT 2019


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

Thanks!

The test case re-creates a loop per test for the sake of test isolation (scheduled activities from test_a() don't interleave with test_b()).

Unfortunately, on the class level level (setUpClass()/tearDownClass()) the loop doesn't exits. There are other reasons that prevent adding them properly, at least not in 3.8.

Maybe later we can provide more rich support.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32972>
_______________________________________


More information about the Python-bugs-list mailing list