summaryrefslogtreecommitdiff
path: root/Lib/test/test_importlib/test_path.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2021-04-02 12:35:32 -0700
committerGitHub <noreply@github.com>2021-04-02 12:35:32 -0700
commitf97dc800689ba98783dac8dc51f87f7c6f413ac6 (patch)
treee51ae8f2bf8b3f5434ab4d8b37cd0eef87b62c4e /Lib/test/test_importlib/test_path.py
parentad442a674ca443feec43a88a2d3671784712e550 (diff)
downloadcpython-git-f97dc800689ba98783dac8dc51f87f7c6f413ac6.tar.gz
bpo-43672: raise ImportWarning when calling find_loader() (GH-25119)
Diffstat (limited to 'Lib/test/test_importlib/test_path.py')
-rw-r--r--Lib/test/test_importlib/test_path.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/test/test_importlib/test_path.py b/Lib/test/test_importlib/test_path.py
index 2110770e2a..d6ed09a9e0 100644
--- a/Lib/test/test_importlib/test_path.py
+++ b/Lib/test/test_importlib/test_path.py
@@ -29,11 +29,9 @@ class PathDiskTests(PathTests, unittest.TestCase):
data = data01
def test_natural_path(self):
- """
- Guarantee the internal implementation detail that
- file-system-backed resources do not get the tempdir
- treatment.
- """
+ # Guarantee the internal implementation detail that
+ # file-system-backed resources do not get the tempdir
+ # treatment.
with resources.path(self.data, 'utf-8.file') as path:
assert 'data' in str(path)