Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Boxiang Sun
Pyston
Commits
df53aebf
Commit
df53aebf
authored
Mar 02, 2015
by
Michael Arntzenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test/tests/dash_c.py
parent
a1be8bf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
test/tests/dash_c.py
test/tests/dash_c.py
+18
-0
No files found.
test/tests/dash_c.py
0 → 100644
View file @
df53aebf
import
sys
import
subprocess
me
=
sys
.
executable
with
open
(
'/dev/null'
)
as
ignore
:
# We don't (yet?) require exact stderr or return code compatibility w/
# python. So we just check that we succeed or fail as appropriate.
def
run
(
args
):
print
0
==
subprocess
.
call
([
me
]
+
args
,
stderr
=
ignore
)
run
([
"-c"
,
"print 2 + 2"
])
run
([
"-c"
,
"import sys; print sys.argv"
,
"hello"
,
"world"
])
run
([
"-c"
,
"import sys; print sys.argv"
,
"-c"
,
"this is ignored"
])
run
([
"-c"
])
run
([
"-c"
,
"-c"
])
run
([
"-c"
,
"this should not work"
])
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