aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_string/test_string.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_string/test_string.py')
-rw-r--r--Lib/test/test_string/test_string.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_string/test_string.py b/Lib/test/test_string/test_string.py
index f6d112d8a93..5394fe4e12c 100644
--- a/Lib/test/test_string/test_string.py
+++ b/Lib/test/test_string/test_string.py
@@ -2,6 +2,14 @@ import unittest
import string
from string import Template
import types
+from test.support import cpython_only
+from test.support.import_helper import ensure_lazy_imports
+
+
+class LazyImportTest(unittest.TestCase):
+ @cpython_only
+ def test_lazy_import(self):
+ ensure_lazy_imports("base64", {"re", "collections"})
class ModuleTest(unittest.TestCase):