8000 DEBUG · python/cpython@9c052ba · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c052ba

Browse files
committed
DEBUG
1 parent 2004fb6 commit 9c052ba

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Lib/test/libregrtest/run_workers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,17 @@ def _runtest(self, test_name: TestName) -> MultiprocessResult:
227227
match_tests = None
228228
err_msg = None
229229

230+
print("main process is_emscripten:", support.is_emscripten)
231+
print("main process is_wasi:", support.is_wasi)
232+
print("main process JSON_FILE_USE_FILENAME:", JSON_FILE_USE_FILENAME)
233+
230234
stdout_file = tempfile.TemporaryFile('w+', encoding=encoding)
231235
if JSON_FILE_USE_FILENAME:
232236
json_tmpfile = tempfile.NamedTemporaryFile('w+', encoding='utf8')
237+
print("main process: create NamedTemporaryFile")
233238
else:
234239
json_tmpfile = tempfile.TemporaryFile('w+', encoding='utf8')
240+
print("main process: create TemporaryFile")
235241

236242
# gh-94026: Write stdout+stderr to a tempfile as workaround for
237243
# non-blocking pipes on Emscripten with NodeJS.
@@ -243,6 +249,8 @@ def _runtest(self, test_name: TestName) -> MultiprocessResult:
243249
json_file = json_tmpfile.fileno()
244250
if MS_WINDOWS:
245251
json_file = msvcrt.get_osfhandle(json_file)
252+
print("main process json_type file:", type(json_file))
253+
print("main process json_type:", json_file)
246254

247255
kwargs = {}
248256
if match_tests:

Lib/test/libregrtest/worker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def worker_process(worker_json: StrJSON) -> NoReturn:
8686
# On Windows, it's a handle.
8787
# On Emscripten/WASI, it's a filename.
8888
json_file: JsonFileType = runtests.json_file
89+
print("worker: json_file type:", type(json_file))
90+
print("worker: json_file:", json_file)
8991

9092
if MS_WINDOWS:
9193
import msvcrt

0 commit comments

Comments
 (0)
0