diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-27 22:44:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 22:44:23 (GMT) |
commit | b0461e19b5ecb2d89917b23efb5ce1048fab1b22 (patch) | |
tree | 75ccc8dadf1a93651a698a9868e4194580f9a80a | |
parent | 10228bad0452d94e66c964b625a0b61befa08e59 (diff) | |
download | cpython-b0461e19b5ecb2d89917b23efb5ce1048fab1b22.zip cpython-b0461e19b5ecb2d89917b23efb5ce1048fab1b22.tar.gz cpython-b0461e19b5ecb2d89917b23efb5ce1048fab1b22.tar.bz2 |
bpo-40275: test.support.check_impl_detail() uses sys.implementation (GH-20468)
check_impl_detail() of test.support now uses sys.implementation.name,
instead of platform.python_implementation().lower(). This change
prepares test.support to import the platform module lazily.
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index e894545..c958bae 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1740,7 +1740,7 @@ def check_impl_detail(**guards): if check_impl_detail(cpython=False): # everywhere except on CPython """ guards, default = _parse_guards(guards) - return guards.get(platform.python_implementation().lower(), default) + return guards.get(sys.implementation.name, default) def no_tracing(func): |