Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 975408c

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Lib/test/support/__init__.py

Copy file name to clipboardExpand all lines: Lib/test/support/__init__.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.