[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Thanks, Andrew.  I'm hoping to finish preparing the patch sometime this weekend.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

ok, it will be better.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Actually, I was still working on this.  I had assigned it to myself.

+p = subprocess.Popen(["nonexistent","-c",'import sys; sys.exit(42)'],
+executable=sys.executable, cwd=python_dir)

The test for the executable argument should really test the executable argument 
independent of the cwd argument.  Also, it would be better if the test uses a 
valid args[0] to demonstrate precedence.  I had prepared a test but did not 
upload it yet, because I also wanted to add an accompanying clarification to 
the docs which I am still preparing.  Reopening.

--
resolution: fixed -> 
stage: committed/rejected -> test needed
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
resolution:  -> fixed
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Committed. Thank you, Kushal Das.
BTW, please fill http://www.python.org/psf/contrib/ as contributor of Python 
project.
We would to get that agreement from everybody who has pushed any patch.
Thanks again.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0df5aeab229f by Andrew Svetlov in branch '3.3':
Issue #16115: Add test for check that executable arg to Popen() takes 
precedence over args[0] arg\n\n 
   Patch by Kushal Das
http://hg.python.org/cpython/rev/0df5aeab229f

New changeset 0fcfb6066e17 by Andrew Svetlov in branch 'default':
Merge issue #16115: Add test for check that executable arg to Popen() takes 
precedence over args[0] arg\n\n 
   Patch by Kushal Das
http://hg.python.org/cpython/rev/0fcfb6066e17

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-03 Thread Kushal Das

Kushal Das added the comment:

Attached patch which has a new test called test_executable_precedence to test 
precedence of executable argument over args[0].

--
keywords: +patch
nosy: +kushaldas
Added file: http://bugs.python.org/file27407/executable_precedence.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-03 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-02 Thread Chris Jerdonek

New submission from Chris Jerdonek:

The executable argument to Popen() takes precedence over args[0] when the 
executable argument is provided.  The test suite should include a test of this 
that runs on all systems.  The test suite does not currently include such a 
test.  This test is a precursor to more specific, platform-specific tests that 
will be added for issue 16114.

--
assignee: chris.jerdonek
components: Library (Lib)
keywords: easy
messages: 171856
nosy: asvetlov, chris.jerdonek
priority: normal
severity: normal
stage: test needed
status: open
title: test that executable arg to Popen() takes precedence over args[0] arg
versions: Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com