]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40275: test.support imports subprocess lazily (GH-20471)
authorVictor Stinner <vstinner@python.org>
Wed, 27 May 2020 23:56:29 +0000 (01:56 +0200)
committerGitHub <noreply@github.com>
Wed, 27 May 2020 23:56:29 +0000 (01:56 +0200)
commitaa890630bc877c73ec806c9982d8b7b2e7019723
tree4e0d3b21695039d5c0275e1951d164b661f08940
parentb0461e19b5ecb2d89917b23efb5ce1048fab1b22
bpo-40275: test.support imports subprocess lazily (GH-20471)

test.support module now imports the platform and subprocess modules
lazily to reduce the number of modules imported by
"import test.support".

With this change, the threading module is no longer imported
indirectly by "import test.support".

Use sys.version rather than platform.machine() to detect the Windows
ARM32 buildbot.
Lib/test/support/__init__.py