Fix localeconv() encoding for LC_NUMERIC

This commit is contained in:
Charalampos Stratakis 2018-01-19 17:36:05 +01:00
parent 57ec20127d
commit 26024771df
2 changed files with 7 additions and 16 deletions

View File

@ -1,12 +0,0 @@
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index 66726d6496d..3318fa5df59 100644
--- a/Lib/test/test_float.py
+++ b/Lib/test/test_float.py
@@ -141,6 +141,7 @@ class GeneralFloatCases(unittest.TestCase):
# non-UTF-8 byte string
check(b'123\xa0')
+ @unittest.skip('Fails in Koji: https://bugzilla.redhat.com/show_bug.cgi?id=1484497')
@support.run_with_locale('LC_NUMERIC', 'fr_FR', 'de_DE')
def test_float_with_comma(self):
# set locale to something that doesn't use '.' for the decimal point

View File

@ -14,7 +14,7 @@ URL: https://www.python.org/
# WARNING When rebasing to a new Python version, # WARNING When rebasing to a new Python version,
# remember to update the python3-docs package as well # remember to update the python3-docs package as well
Version: %{pybasever}.4 Version: %{pybasever}.4
Release: 4%{?dist} Release: 5%{?dist}
License: Python License: Python
@ -342,9 +342,9 @@ Patch262: 00262-pep538_coerce_legacy_c_locale.patch
Patch264: 00264-skip-test-failing-on-aarch64.patch Patch264: 00264-skip-test-failing-on-aarch64.patch
# 00273 # # 00273 #
# Skip test_float_with_comma, which fails in Koji with UnicodeDecodeError # Fix localeconv() encoding for LC_NUMERIC
# See https://bugzilla.redhat.com/show_bug.cgi?id=1484497 # Fixed upstream: https://bugs.python.org/issue31900
Patch273: 00273-skip-float-test.patch Patch273: 00273-fix-localeconv-encoding-for-LC_NUMERIC.patch
# 00274 # # 00274 #
# Upstream uses Debian-style architecture naming. Change to match Fedora. # Upstream uses Debian-style architecture naming. Change to match Fedora.
@ -1489,6 +1489,9 @@ fi
# ====================================================== # ======================================================
%changelog %changelog
* Fri Jan 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-5
- Fix localeconv() encoding for LC_NUMERIC
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-4 * Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-4
- R: gdbm-devel R: gdbm for python3-libs - R: gdbm-devel R: gdbm for python3-libs