Skip to content

Commit 8d832d0

Browse files
committed
Add ensure_lazy_imports test
1 parent 2f7df57 commit 8d832d0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,15 @@ def __get__(self, instance, owner):
173173
return self.func.__get__(instance, owner)
174174

175175

176+
class TestImportTime(unittest.TestCase):
177+
178+
@cpython_only
179+
def test_lazy_import(self):
180+
import_helper.ensure_lazy_imports(
181+
"inspect", {"re", "tokenize"}
182+
)
183+
184+
176185
class TestPredicates(IsTestBase):
177186

178187
def test_excluding_predicates(self):

0 commit comments

Comments
 (0)