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
I WANT MOOOOOAR DEBUG
  • Loading branch information
vstinner committed Sep 12, 2023
commit 4c8d5c82fe3e812054d38a4689d146015d76aa12
1 change: 1 addition & 0 deletions Lib/test/libregrtest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def __init__(self, ns: Namespace):
self.python_cmd: tuple[str] = tuple(ns.python)
else:
self.python_cmd = None
print("main process python_cmd:", self.python_cmd)
self.coverage: bool = ns.trace
self.coverage_dir: StrPath | None = ns.coverdir
self.tmp_dir: StrPath | None = ns.tempdir
Expand Down
2 changes: 2 additions & 0 deletions Lib/test/libregrtest/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ def create_worker_process(runtests: RunTests,
executable = python_cmd
else:
executable = [sys.executable]
print("main process executable:", executable)
cmd = [*executable, *support.args_from_interpreter_flags(),
'-u', # Unbuffered stdout and stderr
'-m', 'test.libregrtest.worker',
worker_json]
print("main process worker cmd:", cmd)

env = dict(os.environ)
if tmp_dir is not None:
Expand Down