()
| 646 | |
| 647 | |
| 648 | def 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 | |
| 666 | def test_execute_interpreter_dashc_program_with_python_options(): |
nothing calls this directly
no test coverage detected