Michael Foord added the comment:

Allowing sys.exit() to end the test run was particularly a problem for testing 
command line tools, where improper patching / unexpected code paths would 
trigger a sys.exit.

If a test framework author wants a way to end the test run I'm happy to provide 
that (a custom exception to raise or a flag to turn off sys.exit handling), but 
I don't think having sys.exit kill test runs is best for test authors.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10611>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to