Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 4daa8ca + 29efe3b commit 3e61c81Copy full SHA for 3e61c81
1 file changed
lib/matplotlib/tests/__init__.py
@@ -15,10 +15,10 @@ def setup():
15
16
try:
17
locale.setlocale(locale.LC_ALL, str('en_US.UTF-8'))
18
- except:
+ except locale.Error:
19
20
locale.setlocale(locale.LC_ALL, str('English_United States.1252'))
21
22
warnings.warn(
23
"Could not set locale to English/United States. "
24
"Some date-related tests may fail")
0 commit comments