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

Skip to content

Commit c436370

Browse files
committed
MORE DEBUG
1 parent 9c052ba commit c436370

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

Lib/test/libregrtest/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,5 +507,10 @@ def main(self, tests: TestList | None = None):
507507

508508
def main(tests=None, **kwargs):
509509
"""Run the Python suite."""
510+
511+
print("main process start sys.platform:", sys.platform)
512+
print("main process start is_emscripten:", support.is_emscripten)
513+
print("main process start is_wasi:", support.is_wasi)
514+
510515
ns = _parse_args(sys.argv[1:], **kwargs)
511516
Regrtest(ns).main(tests=tests)

Lib/test/libregrtest/run_workers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ 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-
234230
stdout_file = tempfile.TemporaryFile('w+', encoding=encoding)
235231
if JSON_FILE_USE_FILENAME:
236232
json_tmpfile = tempfile.NamedTemporaryFile('w+', encoding='utf8')

Lib/test/libregrtest/runtests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
JsonFileType = int
2121
JSON_FILE_USE_FILENAME = False
2222

23+
import os
24+
print(os.getpid(), "JSON_FILE_USE_FILENAME:", JSON_FILE_USE_FILENAME)
25+
print(os.getpid(), "JsonFileType:", JsonFileType)
26+
27+
2328

2429
@dataclasses.dataclass(slots=True, frozen=True)
2530
class HuntRefleak:

Lib/test/libregrtest/worker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ def main():
122122
tmp_dir = get_temp_dir()
123123
work_dir = get_work_dir(tmp_dir, worker=True)
124124

125+
print("worker process sys.platform:", sys.platform)
126+
print("worker process is_emscripten:", support.is_emscripten)
127+
print("worker process is_wasi:", support.is_wasi)
128+
125129
with exit_timeout():
126130
with os_helper.temp_cwd(work_dir, quiet=True):
127131
worker_process(worker_json)

0 commit comments

Comments
 (0)
0