This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author louielu
Recipients ezio.melotti, louielu, michael.foord, rbcollins, ronaldoussoren
Date 2017-07-23.12:07:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500811634.48.0.0674461789241.issue30997@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-07-23 12:07:14louielusetrecipients: + louielu, ronaldoussoren, rbcollins, ezio.melotti, michael.foord
2017-07-23 12:07:14louielusetmessageid: <1500811634.48.0.0674461789241.issue30997@psf.upfronthosting.co.za>
2017-07-23 12:07:14louielulinkissue30997 messages
2017-07-23 12:07:14louielucreate