Skip to content

Commit 51af91b

Browse files
committed
get all env
1 parent 2b27730 commit 51af91b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def test_run(tmp_path):
190190
"run",
191191
"python",
192192
"-c",
193-
"import os, sys; print(os.environ['a']); sys.stderr.write('stderr_output\\n')",
193+
"import os, sys; import json; print(json.dumps(dict(os.environ))); sys.stdout.flush()",
194194
]
195195
result = run_command(printenv_cmd)
196196

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ deps =
1717
pytest-cov
1818
click
1919
py{39,310,311,312,313},pypy3: ipython
20-
commands = pytest -s -vv --cov --cov-report=term-missing --cov-config setup.cfg {posargs}
20+
commands = pytest -s -vv --cov --cov-report=term-missing --cov-config setup.cfg {posargs} -k test_run
2121
depends =
2222
py{39,310,311,312,313},pypy3: coverage-clean
2323
coverage-report: py{39,310,311,312,313},pypy3

0 commit comments

Comments
 (0)