[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Brian Curtin
Brian Curtin added the comment: I knew there was a reason I was thinking my whole idea was slightly ridiculous...duh. -- resolution: -> rejected status: open -> closed ___ Python tracker _

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Michael Foord
Michael Foord 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

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Brian Curtin
New submission from Brian Curtin : A recent sysconfig test which should have been skipped on Windows (now fixed) exposed a bug in the assertIn/assertNotIn methods. If the "container" you are testing doesn't support membership testing or iteration, such as None value when a previous call fails,