Louie Lu added the comment: There is a mailing-list discusss this before:
https://mail.python.org/pipermail/python-list/2016-June/710575.html But after checking, current subTest contextmanager won't yield subtest, so the method of with self.subTest() as sub won't work. Another problem is, inside the subTest, if there have expectfailed, it will raise _ShouldStop, causing the after test won't run it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30997> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com