MCPcopy Index your code
hub / github.com/python/cpython / json_file_use_stdout

Method json_file_use_stdout

Lib/test/libregrtest/runtests.py:135–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers 1

create_json_fileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected