[Python-bugs-list] [ python-Bugs-811082 ] test_tempfile fails on windows if space in install path

SourceForge.net noreply at sourceforge.net
Fri Sep 26 14:01:38 EDT 2003


Bugs item #811082, was opened at 2003-09-23 12:31
Message generated for change (Comment added) made by midramas
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=811082&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_tempfile fails on windows if space in install path

Initial Comment:
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.



----------------------------------------------------------------------

Comment By: Michael Bartl (midramas)
Date: 2003-09-26 20:01

Message:
Logged In: YES 
user_id=31511

Submitted patch #813200 to fix this issue. Please review 

and apply if correct. 

----------------------------------------------------------------------

Comment By: Michael Bartl (midramas)
Date: 2003-09-26 15:19

Message:
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)

----------------------------------------------------------------------

Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-09-23 12:44

Message:
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. 

----------------------------------------------------------------------

Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-09-23 12:36

Message:
Logged In: YES 
user_id=29957

test_popen seems to have the same problem. 



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=811082&group_id=5470



More information about the Python-bugs-list mailing list