mirror of https://github.com/python/cpython
Import relimport using a relative import.
This commit is contained in:
parent
ab41b370a3
commit
16b2e6bd7f
|
@ -263,7 +263,7 @@ class RelativeImport(unittest.TestCase):
|
|||
|
||||
def test_relimport_star(self):
|
||||
# This will import * from .test_import.
|
||||
import relimport
|
||||
from . import relimport
|
||||
self.assertTrue(hasattr(relimport, "RelativeImport"))
|
||||
|
||||
def test_main(verbose=None):
|
||||
|
|
Loading…
Reference in New Issue