R. David Murray added the comment: This has been proposed and rejected several times before.
IMO, a strong reason to reject it is that no other assert methods return values. Consistency is important. Also note that cm survives the context manager, so you don't need that assignment statement. ---------- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> unittest.assertRaises() return the raised exception _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28135> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com