From 8c049c7ea95a50e927e5f395d3888c42d1774be3 Mon Sep 17 00:00:00 2001 From: U2A2U2A1 <192709584+ringobanana-3900@users.noreply.github.com> Date: Wed, 17 Jun 2026 06:38:25 +0900 Subject: [PATCH] [gh-151560] import MetaPathFinder, Loader from importlib.abc + make it used --- Lib/test/test_importlib/resources/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_importlib/resources/util.py b/Lib/test/test_importlib/resources/util.py index 85b5c61518de444..3e0416853c2cceb 100644 --- a/Lib/test/test_importlib/resources/util.py +++ b/Lib/test/test_importlib/resources/util.py @@ -8,6 +8,7 @@ import types from importlib.machinery import ModuleSpec from importlib.resources.abc import ResourceReader, Traversable, TraversableResources +from importlib.abc import MetaPathFinder, Loader from test.support import import_helper, os_helper @@ -218,7 +219,7 @@ def augment_sys_metapath(self, module): yield sys.meta_path.remove(finder_instance) - class MemoryFinder(importlib.abc.MetaPathFinder): + class MemoryFinder(MetaPathFinder): def __init__(self, module): self._module = module @@ -232,7 +233,7 @@ def find_spec(self, fullname, path, target=None): is_package=True, ) - class MemoryLoader(importlib.abc.Loader): + class MemoryLoader(Loader): def __init__(self, module): self._module = module