Ticket #10973: auto_doctest.diff

File auto_doctest.diff, 694 bytes (added by Nate, 15 years ago)
  • simple.py

     
    7070            except ValueError:
    7171                # No doc tests in tests.py
    7272                pass
     73
     74        # Doctest the modules specified in doctest_modules
     75        if hasattr(test_module, 'doctest_modules'):
     76            for module in test_module.doctest_modules:
     77                suite.addTest(doctest.DocTestSuite(module,
     78                                                   checker=doctestOutputChecker,
     79                                                   runner=DocTestRunner))
    7380    return suite
    7481
    7582def build_test(label):
Back to Top