import my_module_with_doctests

def load_tests(loader, tests, ignore):
    tests.addTests(doctest.DocTestSuite(my_module_with_doctests))
return tests
Run all my doctests for all python modules in a folder without seeing failures because of bad imports