mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #13441: Log the locale when localeconv() fails
This commit is contained in:
parent
221ea5d931
commit
706141316a
1 changed files with 5 additions and 1 deletions
|
|
@ -86,9 +86,13 @@ class _LocaleTests(unittest.TestCase):
|
|||
setlocale(LC_CTYPE, loc)
|
||||
except Error:
|
||||
continue
|
||||
try:
|
||||
formatting = localeconv()
|
||||
except Exception as err:
|
||||
self.fail("localeconv() failed with %s locale: %s" % (loc, err))
|
||||
for lc in ("decimal_point",
|
||||
"thousands_sep"):
|
||||
self.numeric_tester('localeconv', localeconv()[lc], lc, loc)
|
||||
self.numeric_tester('localeconv', formatting[lc], lc, loc)
|
||||
|
||||
@unittest.skipUnless(nl_langinfo, "nl_langinfo is not available")
|
||||
def test_lc_numeric_basic(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue