This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_tempfile fails on windows if space in install path
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: anthonybaxter, loewis, midramas
Priority: normal Keywords:

Created on 2003-09-23 10:31 by anthonybaxter, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Messages (6)
msg18288 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2003-09-23 10:31
test_tempfile fails for me on XP when Python is
installed into
\Program Files\Python2.3

I can't cut'n'paste from the window, but the error is
C:\Program: Can't open file 'Files\Python23\python.exe'
from test_tempfile, line 299.
msg18289 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2003-09-23 10:36
Logged In: YES 
user_id=29957

test_popen seems to have the same problem. 
msg18290 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2003-09-23 10:44
Logged In: YES 
user_id=29957

Attempting the obvious fix of " " quoting sys.executable
gives me a Invalid argument error from os.spawnv, so that's
my windows knowledge exhausted. 
msg18291 - (view) Author: Michael Bartl (midramas) Date: 2003-09-26 13:19
Logged In: YES 
user_id=31511

I'm not at home so I have to paste it in here (could provide a 
patch later). Took me ~2 hours to fix this one (horrible 
win32). For more information visit 
http://mail.python.org/pipermail/python-dev/2003-
August/037556.html:

test_tempfile.py (295-297):

  decorated = '"%s"' % sys.executable
  tester = '"%s"' % tester
  retval = os.spawnl(os.P_WAIT, sys.executable, decorated, 
tester, v, fd)
msg18292 - (view) Author: Michael Bartl (midramas) Date: 2003-09-26 18:01
Logged In: YES 
user_id=31511

Submitted patch #813200 to fix this issue. Please review 
and apply if correct. 
msg18293 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-23 16:02
Logged In: YES 
user_id=21627

Fixed with said patch.
History
Date User Action Args
2022-04-10 16:11:19adminsetgithub: 39282
2003-09-23 10:31:09anthonybaxtercreate