summaryrefslogtreecommitdiff
path: root/Lib/test/test_importlib/test_contents.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_contents.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_contents.py')
-rw-r--r--Lib/test/test_importlib/test_contents.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/Lib/test/test_importlib/test_contents.py b/Lib/test/test_importlib/test_contents.py
index a5b6538a2f..3323bf5b5c 100644
--- a/Lib/test/test_importlib/test_contents.py
+++ b/Lib/test/test_importlib/test_contents.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 ContentsTests:
@@ -38,10 +38,6 @@ class ContentsNamespaceTests(ContentsTests, unittest.TestCase):
}
def setUp(self):
- from test.test_importlib import namespacedata01
+ from . import namespacedata01
self.data = namespacedata01
-
-
-if __name__ == '__main__':
- unittest.main()