bienstman5.py 550 B

123456789101112131415161718192021
  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. >>> from bienstman5_ext import *
  6. >>> m = M(1j)
  7. '''
  8. def run(args = None):
  9. import sys
  10. import doctest
  11. if args is not None:
  12. sys.argv = args
  13. return doctest.testmod(sys.modules.get(__name__))
  14. if __name__ == '__main__':
  15. print("running...")
  16. import sys
  17. status = run()[0]
  18. if (status == 0): print("Done.")
  19. sys.exit(status)