bienstman2.py 529 B

1234567891011121314151617181920
  1. # Copyright David Abrahams 2004. Distributed under the Boost
  2. # Software License, Version 1.0. (See accompanying
  3. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. '''
  5. >>> import bienstman2_ext
  6. '''
  7. def run(args = None):
  8. import sys
  9. import doctest
  10. if args is not None:
  11. sys.argv = args
  12. return doctest.testmod(sys.modules.get(__name__))
  13. if __name__ == '__main__':
  14. print("running...")
  15. import sys
  16. status = run()[0]
  17. if (status == 0): print("Done.")
  18. sys.exit(status)