From: Jason R. Coombs Date: Wed, 27 Jul 2022 08:54:31 +0000 (-0400) Subject: gh-93963: Remove usage of deprecated interface from importlib.abc. (#95217) X-Git-Tag: v3.12.0a1~822 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78eb3f79eae772f7a5cdbb2cc02c12b05bd88305;p=thirdparty%2FPython%2Fcpython.git gh-93963: Remove usage of deprecated interface from importlib.abc. (#95217) Co-authored-by: Ɓukasz Langa --- diff --git a/Lib/test/test_importlib/resources/test_files.py b/Lib/test/test_importlib/resources/test_files.py index 4665ed7cc00d..779e5a12b5d5 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 f80c9cd01d66..eb2291f15de1 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 000000000000..89ce124c55f2 --- /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.