Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d4210bc7
Commit
d4210bc7
authored
Oct 23, 2003
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #813200: Quote executable path on Windows. Fixes #811082.
Backported to 2.3.
parent
ee950ff3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Lib/test/test_tempfile.py
Lib/test/test_tempfile.py
+10
-2
No files found.
Lib/test/test_tempfile.py
View file @
d4210bc7
...
...
@@ -293,8 +293,16 @@ class test__mkstemp_inner(TC):
tester
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
me
)),
"tf_inherit_check.py"
)
retval
=
os
.
spawnl
(
os
.
P_WAIT
,
sys
.
executable
,
sys
.
executable
,
tester
,
v
,
fd
)
# 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
)
self
.
failIf
(
retval
>
0
,
"child process reports failure"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment