mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib
(GH-30682)" (GH-30799)
This reverts commit 57316c52ba
for files pertaining to importlib.metadata and importlib.resources.
This commit is contained in:
parent
353e3b2820
commit
d888ff5381
10 changed files with 22 additions and 40 deletions
|
@ -3,8 +3,8 @@ import unittest
|
|||
|
||||
from importlib import resources
|
||||
from importlib.abc import Traversable
|
||||
from test.test_importlib import data01
|
||||
from test.test_importlib.resources import util
|
||||
from . import data01
|
||||
from .resources import util
|
||||
|
||||
|
||||
class FilesTests:
|
||||
|
@ -37,7 +37,7 @@ class OpenZipTests(FilesTests, util.ZipSetup, unittest.TestCase):
|
|||
|
||||
class OpenNamespaceTests(FilesTests, unittest.TestCase):
|
||||
def setUp(self):
|
||||
from test.test_importlib import namespacedata01
|
||||
from . import namespacedata01
|
||||
|
||||
self.data = namespacedata01
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue