(code: str)
| 606 | |
| 607 | @staticmethod |
| 608 | def _popen(code: str) -> subprocess.Popen: |
| 609 | return subprocess.Popen( |
| 610 | [sys.executable, "-c", code], |
| 611 | stdin=subprocess.PIPE, |
| 612 | stdout=subprocess.PIPE, |
| 613 | stderr=subprocess.PIPE, |
| 614 | ) |
| 615 | |
| 616 | def test_normal_roundtrip(self) -> None: |
| 617 | proc = self._popen("import sys; sys.stdout.write('ok:' + sys.stdin.read())") |
no outgoing calls
no test coverage detected