doctest blacklist dependency check

before blacklisting files check that their dependencies are not met

this PR 'unskips' a single doctest of the preview() function which does
not spawn a viewer

related to #1779