[issue16968] Fix test discovery for test_concurrent_futures.py

Brett Cannon report at bugs.python.org
Mon Jan 14 23:28:56 CET 2013


Brett Cannon added the comment:

The way I would replace test_main() would be:

if __name__ == '__main__':
  try:
    test.support.reap_threads(unittest.main)()
  finally:
    test.support_reap_children()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16968>
_______________________________________


More information about the Python-bugs-list mailing list