gh-109413: libregrtest: Add and improve type annotations (#109405)

This commit is contained in:
Alex Waygood 2023-09-14 19:33:18 +01:00 committed by GitHub
parent 21e80f4c19
commit 3b9d10b031
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 83 additions and 33 deletions

View file

@ -1,7 +1,7 @@
import subprocess
import sys
import os
from typing import NoReturn
from typing import Any, NoReturn
from test import support
from test.support import os_helper
@ -45,7 +45,7 @@ def create_worker_process(runtests: RunTests, output_fd: int,
# Running the child from the same working directory as regrtest's original
# invocation ensures that TEMPDIR for the child is the same when
# sysconfig.is_python_build() is true. See issue 15300.
kwargs = dict(
kwargs: dict[str, Any] = dict(
env=env,
stdout=output_fd,
# bpo-45410: Write stderr into stdout to keep messages order