[Python-checkins] python/dist/src/Lib/test test_tempfile.py,
1.14.8.2, 1.14.8.3
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Thu Oct 23 11:55:05 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv21085/Lib/test
Modified Files:
Tag: release23-maint
test_tempfile.py
Log Message:
Patch #813200: Quote executable path 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.8.2
retrieving revision 1.14.8.3
diff -C2 -d -r1.14.8.2 -r1.14.8.3
*** test_tempfile.py 18 Oct 2003 18:09:18 -0000 1.14.8.2
--- test_tempfile.py 23 Oct 2003 15:55:03 -0000 1.14.8.3
***************
*** 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,306 ----
"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
! if sys.platform in ('win32'):
! decorated = '"%s"' % sys.executable
! tester = '"%s"' % tester
! else:
! decorated = sys.executable
!
! 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