python3Packages.pyicu: skip test for sjd locale (#373174)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
@@ -18,6 +19,12 @@ buildPythonPackage rec {
|
||||
hash = "sha256-1JGQheqgfaErrejuch57v3reAVHKD4KUaibI9LmM3Os=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# fails testExemplarSet2 test due to sjd locale not having an auxiliary
|
||||
# esType. icuReal doesn't have an sjd locale
|
||||
./skip-sjd-local.diff
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config
|
||||
buildInputs = [ icu ];
|
||||
nativeCheckInputs = [
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/test/test_LocaleData.py b/test/test_LocaleData.py
|
||||
index 76410e7..7db6f13 100644
|
||||
--- a/test/test_LocaleData.py
|
||||
+++ b/test/test_LocaleData.py
|
||||
@@ -126,6 +126,7 @@ class TestLocaleData(TestCase):
|
||||
ld = LocaleData(locale)
|
||||
scriptCodes = Script.getCode(locale)
|
||||
exemplarSets = []
|
||||
+ if locale == 'sjd': continue
|
||||
for k in range(2): # for casing option in (normal, uncased)
|
||||
# it seems USET_CASE_INSENSITIVE = 2
|
||||
option = 0 if k == 0 else 2
|
||||
|
||||
Reference in New Issue
Block a user