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
|
@ -1,8 +1,8 @@
|
|||
import unittest
|
||||
|
||||
from importlib import import_module, 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):
|
||||
|
@ -66,7 +66,7 @@ class ReadZipTests(ReadTests, util.ZipSetup, unittest.TestCase):
|
|||
|
||||
class ReadNamespaceTests(ReadTests, 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