def wantFile(self,filename):
        #print '*** ipdoctest- wantFile:',filename  # dbg

        for pat in self.exclude_patterns:
            if pat.search(filename):
                # print '###>>> SKIP:',filename  # dbg
                return False

        if is_extension_module(filename):
            return True
        else:
            return doctests.Doctest.wantFile(self,filename)
Return whether the given filename should be scanned for tests.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/testing/plugin/ipdoctest.py/ExtensionDoctest.wantFile