(self)
| 133 | yield from self.tests |
| 134 | |
| 135 | def json_file_use_stdout(self) -> bool: |
| 136 | # Use STDOUT in two cases: |
| 137 | # |
| 138 | # - If --python command line option is used; |
| 139 | # - On Emscripten and WASI. |
| 140 | # |
| 141 | # On other platforms, UNIX_FD or WINDOWS_HANDLE can be used. |
| 142 | return ( |
| 143 | bool(self.python_cmd) |
| 144 | or support.is_emscripten |
| 145 | or support.is_wasi |
| 146 | ) |
| 147 | |
| 148 | def create_python_cmd(self) -> list[str]: |
| 149 | python_opts = support.args_from_interpreter_flags() |