mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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.
This commit is contained in:
parent
10228bad04
commit
b0461e19b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue