Ezio Melotti <ezio.melo...@gmail.com> added the comment:

For your purpose indeed assertTrue() is not appropriate, however assertEqual(x, 
True) works for several different x, including 1.0 or 1.
Also assertRaises can be used as a context manager on 2.7 too.

----------
priority:  -> normal
stage:  -> patch review

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7855>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to