Steven D'Aprano <st...@removethis.cybersource.com.au> writes: > Ah, that would be it. Not a bug then, a limitation of the doctest module.
The doctest module is good for narrative tests (ensuring that examples in documentation actually work as written), but poor for unit testing. Both functions are useful, but each should use a different tool <URL:http://bemusement.org/diary/2008/October/23/narrative-tests>. Not entirely related to the limitation you've found, and I don't know from your explanation whether you're mixing the two purposes, but it's worth pointing out in case you are. -- \ “I used to think that the brain was the most wonderful organ in | `\ my body. Then I realized who was telling me this.” —Emo Philips | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list