summaryrefslogtreecommitdiff
path: root/Lib/test/test_importlib/test_open.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-01-22 21:38:26 -0500
committerGitHub <noreply@github.com>2022-01-22 21:38:26 -0500
commitd888ff5381594641126065e78dc9210dae4436a4 (patch)
treee113f1ed59bfc905fd078ef92efbac7532929d38 /Lib/test/test_importlib/test_open.py
parent353e3b2820bed38da16140276786eef9ba33d3bd (diff)
downloadcpython-git-d888ff5381594641126065e78dc9210dae4436a4.tar.gz
bpo-46425: Partially revert "bpo-46425: fix direct invocation of `test_importlib` (GH-30682)" (GH-30799)
This reverts commit 57316c52bae5d6420f5067f3891ec328deb97305 for files pertaining to importlib.metadata and importlib.resources.
Diffstat (limited to 'Lib/test/test_importlib/test_open.py')
-rw-r--r--Lib/test/test_importlib/test_open.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_importlib/test_open.py b/Lib/test/test_importlib/test_open.py
index ab390269e0..df75e343d2 100644
--- a/Lib/test/test_importlib/test_open.py
+++ b/Lib/test/test_importlib/test_open.py
@@ -1,8 +1,8 @@
import unittest
from importlib import resources
-from test.test_importlib import data01
-from test.test_importlib.resources import util
+from . import data01
+from .resources import util
class CommonBinaryTests(util.CommonTests, unittest.TestCase):
@@ -68,7 +68,7 @@ class OpenDiskTests(OpenTests, unittest.TestCase):
class OpenDiskNamespaceTests(OpenTests, unittest.TestCase):
def setUp(self):
- from test.test_importlib import namespacedata01
+ from . import namespacedata01
self.data = namespacedata01