[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

Nick Coghlan report at bugs.python.org
Tue Feb 28 12:30:21 CET 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

test_cmd_line and test_cmd_line_script are both about testing the behaviour of the interpreter when run from the command line. Since this test *is* a behavioural test for the interpreter when invoked as an application, it should be in one of them.

The former is for testing the behaviour that doesn't involve invoking a script that does something, whereas the latter is for testing the way the interpreter handles various methods of script invocation, *including* what it prints to stderr and stdout in various scenarios.

Therefore, test_cmd_line_script *is* the right place for it. The fact that it happens to be testing the way an exception is displayed doesn't change the fact that it's a test of the way the interpreter handles a particular situation that may arise when running a script.

----------

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


More information about the Python-bugs-list mailing list