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
d69030db
Commit
d69030db
authored
Jul 20, 2002
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get popen test to work even if python is not in the path
parent
6f18a3c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/test/test_popen.py
Lib/test/test_popen.py
+1
-1
No files found.
Lib/test/test_popen.py
View file @
d69030db
...
...
@@ -15,7 +15,7 @@ from os import popen
# This results in Python being spawned and printing the sys.argv list.
# We can then eval() the result of this, and see what each argv was.
def
_do_test_commandline
(
cmdline
,
expected
):
cmd
=
'
python -c "import sys;print sys.argv" %s'
%
(
cmdline
,
)
cmd
=
'
%s -c "import sys;print sys.argv" %s'
%
(
sys
.
executable
,
cmdline
)
data
=
popen
(
cmd
).
read
()
got
=
eval
(
data
)[
1
:]
# strip off argv[0]
if
got
!=
expected
:
...
...
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