add wantDirectory to ipdoctest, so that directories will be checked for exclusion
add wantDirectory to ipdoctest, so that directories will be checked for exclusion

This prevents ImportErrors raised in `__init__` checks from causing a failure when they should have been excluded.

closes gh-918
closes gh-968

ipython/ipython,ipython/ipython