summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/main.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-12 22:41:25 (GMT)
committerGitHub <noreply@github.com>2023-09-12 22:41:25 (GMT)
commit75cdd9a904bbed9ac3bf02ef53b1c4c58aeee4d0 (patch)
tree5534259955c57c016c2fb18fc20aef3d2beb1bbd /Lib/test/libregrtest/main.py
parent5dcbbd8861e618488d95416dee8ea94577e3f4f0 (diff)
downloadcpython-75cdd9a904bbed9ac3bf02ef53b1c4c58aeee4d0.zip
cpython-75cdd9a904bbed9ac3bf02ef53b1c4c58aeee4d0.tar.gz
cpython-75cdd9a904bbed9ac3bf02ef53b1c4c58aeee4d0.tar.bz2
gh-109276: libregrtest: WASM use filename for JSON (#109340)
On Emscripten and WASI platforms, or if --python command line option is used, libregrtest now uses a filename for the JSON file. Emscripten and WASI buildbot workers run the main test process with a different Python (Linux) which spawns Emscripten/WASI processes using the command specified in --python command line option. Passing a file descriptor from the parent process to the child process doesn't work in this case. * Add JsonFile and JsonFileType classes * Add RunTests.json_file_use_filename() method. * Add a test in test_regrtest on the --python command line option. * test_regrtest: add parallel=False parameter. * Split long RunWorkers._runtest() function into sub-functions.
Diffstat (limited to 'Lib/test/libregrtest/main.py')
-rw-r--r--Lib/test/libregrtest/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index dd9a107..ba493ae 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -406,7 +406,7 @@ class Regrtest:
python_cmd=self.python_cmd,
randomize=self.randomize,
random_seed=self.random_seed,
- json_fd=None,
+ json_file=None,
)
def _run_tests(self, selected: TestTuple, tests: TestList | None) -> int: