FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/tests/test_sysargv.py at master · sdpython/pythonnet · GitHub
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
sdpython
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
tests
/
test_sysargv.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (11 loc) · 440 Bytes
Breadcrumbs
pythonnet
/
src
/
tests
/
test_sysargv.py
Copy path
File metadata and controls
15 lines (11 loc) · 440 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Test sys.argv state."""
import
sys
from
subprocess
import
check_output
def
test_sys_argv_state
(
filepath
):
"""Test sys.argv state doesn't change after clr import.
To better control the arguments being passed, test on a fresh python
instance with specific arguments"""
script
=
filepath
(
"argv-fixture.py"
)
out
=
check_output
([
sys
.
executable
,
script
,
"foo"
,
"bar"
])
assert
b"foo"
in
out
assert
b"bar"
in
out
Back
|
FazBrowse Home
|
New Git URL