MCPcopy Index your code
hub / github.com/pex-tool/pex / test_execute_interpreter_dashc_program

Function test_execute_interpreter_dashc_program

tests/test_pex.py:648–663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

646
647
648def test_execute_interpreter_dashc_program():
649 # type: () -> None
650 with temporary_dir() as pex_chroot:
651 pex_builder = PEXBuilder(path=pex_chroot)
652 pex_builder.freeze()
653 process = PEX(pex_chroot).run(
654 args=["-c", 'import sys; print(" ".join(sys.argv))', "one"],
655 stdout=subprocess.PIPE,
656 stderr=subprocess.PIPE,
657 blocking=False,
658 )
659 stdout, stderr = process.communicate()
660
661 assert 0 == process.returncode
662 assert b"-c one\n" == stdout
663 assert b"" == stderr
664
665
666def test_execute_interpreter_dashc_program_with_python_options():

Callers

nothing calls this directly

Calls 6

freezeMethod · 0.95
temporary_dirFunction · 0.90
PEXBuilderClass · 0.90
PEXClass · 0.90
communicateMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected