Skip to content

Commit 975408c

Browse files
authored
bpo-40275: test.support imports lazily locale import (GH-19761)
1 parent 785f5e6 commit 975408c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import glob
1414
import importlib
1515
import importlib.util
16-
import locale
1716
import os
1817
import platform
1918
import re
@@ -2311,6 +2310,7 @@ def skip_if_buggy_ucrt_strfptime(test):
23112310
See bpo-37552 [Windows] strptime/strftime return invalid
23122311
results with UCRT version 17763.615
23132312
"""
2313+
import locale
23142314
global _buggy_ucrt
23152315
if _buggy_ucrt is None:
23162316
if(sys.platform == 'win32' and

0 commit comments

Comments
 (0)