From 78eb3f79eae772f7a5cdbb2cc02c12b05bd88305 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 27 Jul 2022 04:54:31 -0400 Subject: gh-93963: Remove usage of deprecated interface from importlib.abc. (#95217) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ɓukasz Langa --- Lib/test/test_importlib/resources/test_files.py | 2 +- Lib/test/test_importlib/resources/util.py | 2 +- Misc/NEWS.d/next/Tests/2022-07-24-16-28-31.gh-issue-93963.UB9azu.rst | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/Tests/2022-07-24-16-28-31.gh-issue-93963.UB9azu.rst diff --git a/Lib/test/test_importlib/resources/test_files.py b/Lib/test/test_importlib/resources/test_files.py index 4665ed7..779e5a1 100644 --- a/Lib/test/test_importlib/resources/test_files.py +++ b/Lib/test/test_importlib/resources/test_files.py @@ -2,7 +2,7 @@ import typing import unittest from importlib import resources -from importlib.abc import Traversable +from importlib.resources.abc import Traversable from . import data01 from . import util diff --git a/Lib/test/test_importlib/resources/util.py b/Lib/test/test_importlib/resources/util.py index f80c9cd..eb2291f 100644 --- a/Lib/test/test_importlib/resources/util.py +++ b/Lib/test/test_importlib/resources/util.py @@ -7,7 +7,7 @@ from pathlib import Path, PurePath from . import data01 from . import zipdata01 -from importlib.abc import ResourceReader +from importlib.resources.abc import ResourceReader from test.support import import_helper diff --git a/Misc/NEWS.d/next/Tests/2022-07-24-16-28-31.gh-issue-93963.UB9azu.rst b/Misc/NEWS.d/next/Tests/2022-07-24-16-28-31.gh-issue-93963.UB9azu.rst new file mode 100644 index 0000000..89ce124 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2022-07-24-16-28-31.gh-issue-93963.UB9azu.rst @@ -0,0 +1 @@ +Updated tests to use preferred location for ``importlib.resources`` ABCs. -- cgit v0.12