Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1559298] test_popen fails on Windows if installed to "Program Files"

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 3, 2009, 9:14 PM

Post #1 of 1 (64 views)
Permalink
[issue1559298] test_popen fails on Windows if installed to "Program Files"

Russ Gibson <russg[at]rnstech.com> added the comment:

What is needed is separate quoting for the command and the argument.
Right now, test_popen only surrounds the entire command line with quotes:

"c:\Program Files\Python2.6\Python.exe -u c:\Documents and Settings\Russ
Gibson\cgi-bin\cgi.py"

It needs to the above as thus:

"c:\Program Files\Python2.6\Python.exe" -u "c:\Documents and
Settings\Russ Gibson\cgi-bin\cgi.py"

>From the command line, the second case works, but the first doesn't.
Neither work from os.popen in 2.6.2.

To make sure that popen works in all cases under windows, test_popen*
need to test with separate quotes around the command and argument. That
will show the real problem with the current os.popen* implementation(s).

(yeah, I know, shut up and provide a patch...)

----------
nosy: +squeegee

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1559298>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.