summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-05-04 18:05:02 (GMT)
committerGitHub <noreply@github.com>2020-05-04 18:05:02 (GMT)
commit975408c065b645e7d717546b0d744415abb45cd1 (patch)
tree5eeca03e8e31c43738d1b565d9ca0491176daa59 /Lib
parent785f5e6d674306052bf865677d885c30561985ae (diff)
downloadcpython-975408c065b645e7d717546b0d744415abb45cd1.zip
cpython-975408c065b645e7d717546b0d744415abb45cd1.tar.gz
cpython-975408c065b645e7d717546b0d744415abb45cd1.tar.bz2
bpo-40275: test.support imports lazily locale import (GH-19761)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/support/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index bd21574..d241828 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -13,7 +13,6 @@ import gc
import glob
import importlib
import importlib.util
-import locale
import os
import platform
import re
@@ -2311,6 +2310,7 @@ def skip_if_buggy_ucrt_strfptime(test):
See bpo-37552 [Windows] strptime/strftime return invalid
results with UCRT version 17763.615
"""
+ import locale
global _buggy_ucrt
if _buggy_ucrt is None:
if(sys.platform == 'win32' and