From 059c641a6c9cbf01019b3b6baec7b805baab4b09 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sat, 14 Sep 2019 16:37:43 +0100 Subject: [PATCH] skip_noencoding_locales Some datetime tests run the test in every available locale. If this set includes locales without an encoding (currently dsb_DE and sah_RU), it fails due to Python bug https://bugs.python.org/issue20088 Failure log https://tests.reproducible-builds.org/debian/rbuild/buster/amd64/pandas_0.23.3+dfsg-3.rbuild.log.gz Author: Rebecca N. Palmer Bug: https://github.com/pandas-dev/pandas/issues/20957 Forwarded: no Gbp-Pq: Name skip_noencoding_locales.patch --- pandas/util/testing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index b7edbff0..f13fa584 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -407,6 +407,8 @@ def _default_locale_getter(): except subprocess.CalledProcessError as e: raise type(e)("{exception}, the 'locale -a' command cannot be found " "on your system".format(exception=e)) + # skip locales without encoding, to avoid Python bug https://bugs.python.org/issue20088 + raw_locales = raw_locales.replace(b'\ndsb_DE\n',b'\n').replace(b'\nsah_RU\n',b'\n') return raw_locales -- 2.30.2