[Python-checkins] python/dist/src/Lib/test test_tempfile.py, 1.14,
1.14.8.1
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Sat Oct 18 14:08:05 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv19145
Modified Files:
Tag: release23-maint
test_tempfile.py
Log Message:
Patch #813200: Properly quote executable on Windows. Fixes #811082.
Index: test_tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_tempfile.py,v
retrieving revision 1.14
retrieving revision 1.14.8.1
diff -C2 -d -r1.14 -r1.14.8.1
*** test_tempfile.py 1 May 2003 17:45:51 -0000 1.14
--- test_tempfile.py 18 Oct 2003 18:08:03 -0000 1.14.8.1
***************
*** 293,298 ****
"tf_inherit_check.py")
! retval = os.spawnl(os.P_WAIT, sys.executable,
! sys.executable, tester, v, fd)
self.failIf(retval < 0,
"child process caught fatal signal %d" % -retval)
--- 293,302 ----
"tf_inherit_check.py")
! # On Windows a spawn* /path/ with embedded spaces shouldn't be quoted,
! # but an arg with embedded spaces should be decorated with double
! # quotes on each end
! decorated = '"%s"' % sys.executable
! tester = '"%s"' % tester
! retval = os.spawnl(os.P_WAIT, sys.executable, decorated, tester, v, fd)
self.failIf(retval < 0,
"child process caught fatal signal %d" % -retval)
More information about the Python-checkins
mailing list