diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-22 19:05:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 18:05:05 +0200 |
commit | 57316c52bae5d6420f5067f3891ec328deb97305 (patch) | |
tree | b044c0085ff11dc47950562818150077536c324c /Lib/test/test_importlib/test_contents.py | |
parent | 55f4ec460ee6dcffc26180fd982ad89083c9acb1 (diff) | |
download | cpython-57316c52bae5d6420f5067f3891ec328deb97305.tar.gz cpython-57316c52bae5d6420f5067f3891ec328deb97305.zip |
bpo-46425: fix direct invocation of `test_importlib` (GH-30682)
Diffstat (limited to 'Lib/test/test_importlib/test_contents.py')
-rw-r--r-- | Lib/test/test_importlib/test_contents.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/test/test_importlib/test_contents.py b/Lib/test/test_importlib/test_contents.py index 3323bf5b5cf..a5b6538a2fc 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 . import data01 -from .resources import util +from test.test_importlib import data01 +from test.test_importlib.resources import util class ContentsTests: @@ -38,6 +38,10 @@ class ContentsNamespaceTests(ContentsTests, unittest.TestCase): } def setUp(self): - from . import namespacedata01 + from test.test_importlib import namespacedata01 self.data = namespacedata01 + + +if __name__ == '__main__': + unittest.main() |