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 0cad151 commit c12439bCopy full SHA for c12439b
Lib/test/test_zoneinfo/_support.py
@@ -25,6 +25,14 @@ def inner():
25
26
@call_once
27
def get_modules():
28
+ """Retrieve two copies of zoneinfo: pure Python and C accelerated.
29
+
30
+ Because this function manipulates the import system in a way that might
31
+ be fragile or do unexpected things if it is run many times, it uses a
32
+ `call_once` decorator to ensure that this is only ever called exactly
33
+ one time — in other words, when using this function you will only ever
34
+ get one copy of each module rather than a fresh import each time.
35
+ """
36
import zoneinfo as c_module
37
py_module = import_fresh_module("zoneinfo", blocked=["_czoneinfo"])
38
0 commit comments