We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3cfa67 commit 6c40c3aCopy full SHA for 6c40c3a
Lib/test/test_site.py
@@ -8,6 +8,7 @@
8
import test.support
9
from test import support
10
from test.support.script_helper import assert_python_ok
11
+from test.support import import_helper
12
from test.support import os_helper
13
from test.support import socket_helper
14
from test.support import captured_stderr
@@ -574,6 +575,17 @@ def test_license_exists_at_url(self):
574
575
code = e.code
576
self.assertEqual(code, 200, msg="Can't find " + url)
577
578
+ @support.cpython_only
579
+ def test_lazy_imports(self):
580
+ import_helper.ensure_lazy_imports("site", [
581
+ "io",
582
+ "locale",
583
+ "traceback",
584
+ "atexit",
585
+ "warnings",
586
+ "textwrap",
587
+ ])
588
+
589
590
class StartupImportTests(unittest.TestCase):
591
0 commit comments