__main__.py 401 B

1234567891011121314
  1. """Shim to allow python -m tornado.test.
  2. This only works in python 2.7+.
  3. """
  4. from __future__ import absolute_import, division, print_function
  5. from tornado.test.runtests import all, main
  6. # tornado.testing.main autodiscovery relies on 'all' being present in
  7. # the main module, so import it here even though it is not used directly.
  8. # The following line prevents a pyflakes warning.
  9. all = all
  10. main()