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