[issue9330] assertIn should check for membership support before testing

Michael Foord report at bugs.python.org
Thu Jul 22 23:12:06 CEST 2010


Michael Foord <michael at voidspace.org.uk> added the comment:

No, assertIn is for testing for membership in a container. If you pass it something that isn't a container then it indicates an error in the test (or misuse of the assert!).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9330>
_______________________________________


More information about the Python-bugs-list mailing list