diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index e894545f87e4289..c958bae643a7176 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):