Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c826b9

Browse files
committed
Update locale setting for coverage
1 parent 8d49b92 commit 8c826b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ def test_latex(self, is_latex, usetex, expected):
14521452
def test_locale_comma():
14531453
currentLocale = locale.getlocale()
14541454
try:
1455-
locale.setlocale(locale.LC_ALL, 'fy_DE.UTF-8')
1455+
locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
14561456
ticks = mticker.ScalarFormatter(useMathText=True, useLocale=True)
14571457
fmt = '$\\mathdefault{%1.1f}$'
14581458
x = ticks._format_maybe_minus_and_locale(fmt, 0.5)
@@ -1462,7 +1462,7 @@ def test_locale_comma():
14621462
x = ticks._format_maybe_minus_and_locale(fmt, 0.5)
14631463
assert x == ',$\\mathdefault{,0{,}5},$'
14641464
except locale.Error:
1465-
pytest.skip("Locale fy_DE.UTF-8 is not supported on this machine")
1465+
pytest.skip("Locale de_DE.UTF-8 is not supported on this machine")
14661466
finally:
14671467
locale.setlocale(locale.LC_ALL, currentLocale)
14681468

0 commit comments

Comments
 (0)