Nick Coghlan <ncogh...@gmail.com> added the comment:

The second instance is inside the source code string that's written out as the 
script to be run in the subprocess. Not a bad idea actually:
- it avoids writing the example args twice (which is what I was thinking of 
doing)
- it avoids turning the test_script into a string formatting template (which is 
something I've been trying to avoid for that test)
- it provides an additional sanity check on how sys.path is being initialised 
in the subprocess

For the two failures, I suggest modifying _check_script() to return the "rc, 
out, err" from the underlying assert_python_ok() call, then updating the two 
offending tests to call _check_script() appropriately instead of calling 
assert_python_ok() directly.

----------

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

Reply via email to