Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MORE DEBUG
  • Loading branch information
vstinner committed Sep 12, 2023
commit c4363703399e01768207a6e225dfa595bfe4e6d1
5 changes: 5 additions & 0 deletions Lib/test/libregrtest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,5 +507,10 @@ def main(self, tests: TestList | None = None):

def main(tests=None, **kwargs):
"""Run the Python suite."""

print("main process start sys.platform:", sys.platform)
print("main process start is_emscripten:", support.is_emscripten)
print("main process start is_wasi:", support.is_wasi)

ns = _parse_args(sys.argv[1:], **kwargs)
Regrtest(ns).main(tests=tests)
4 changes: 0 additions & 4 deletions Lib/test/libregrtest/run_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ def _runtest(self, test_name: TestName) -> MultiprocessResult:
match_tests = None
err_msg = None

print("main process is_emscripten:", support.is_emscripten)
print("main process is_wasi:", support.is_wasi)
print("main process JSON_FILE_USE_FILENAME:", JSON_FILE_USE_FILENAME)

stdout_file = tempfile.TemporaryFile('w+', encoding=encoding)
if JSON_FILE_USE_FILENAME:
json_tmpfile = tempfile.NamedTemporaryFile('w+', encoding='utf8')
Expand Down
5 changes: 5 additions & 0 deletions Lib/test/libregrtest/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
JsonFileType = int
JSON_FILE_USE_FILENAME = False

import os
print(os.getpid(), "JSON_FILE_USE_FILENAME:", JSON_FILE_USE_FILENAME)
print(os.getpid(), "JsonFileType:", JsonFileType)



@dataclasses.dataclass(slots=True, frozen=True)
class HuntRefleak:
Expand Down
4 changes: 4 additions & 0 deletions Lib/test/libregrtest/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ def main():
tmp_dir = get_temp_dir()
work_dir = get_work_dir(tmp_dir, worker=True)

print("worker process sys.platform:", sys.platform)
print("worker process is_emscripten:", support.is_emscripten)
print("worker process is_wasi:", support.is_wasi)

with exit_timeout():
with os_helper.temp_cwd(work_dir, quiet=True):
worker_process(worker_json)
Expand Down