iptest.py 523 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. """Nose-based test runner.
  3. """
  4. from __future__ import print_function
  5. from nose.core import main
  6. from nose.plugins.builtin import plugins
  7. from nose.plugins.doctests import Doctest
  8. from . import ipdoctest
  9. from .ipdoctest import IPDocTestRunner
  10. if __name__ == '__main__':
  11. print('WARNING: this code is incomplete!')
  12. print()
  13. pp = [x() for x in plugins] # activate all builtin plugins first
  14. main(testRunner=IPDocTestRunner(),
  15. plugins=pp+[ipdoctest.IPythonDoctest(),Doctest()])