summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2021-12-10 08:08:06 -0800
committerSeth Morton <seth.m.morton@gmail.com>2021-12-10 21:09:23 -0800
commit96d46e5a57fc6281f9c4b2cc06f8736560cfbe8a (patch)
treea184eeaaf5a7cb333b56fb0f6d73fa0957074f40
parentf9d8cc595ef134feac11573ef94e4b8172987a7a (diff)
downloadnatsort-96d46e5a57fc6281f9c4b2cc06f8736560cfbe8a.tar.gz
Add new cs_CZ locale into the CI environment
-rw-r--r--.github/workflows/tests.yml2
-rw-r--r--tests/conftest.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8dfb799..d78fdf9 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -36,7 +36,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
- sudo apt-get install language-pack-de language-pack-en
+ sudo apt-get install language-pack-de language-pack-en language-pack-cs
- name: Install ICU
if: matrix.extras
diff --git a/tests/conftest.py b/tests/conftest.py
index 6cd922b..cda2aaf 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -7,6 +7,7 @@ from typing import Iterator
import hypothesis
import pytest
+from natsort.compat.locale import dumb_sort
# This disables the "too slow" hypothesis heath check globally.
@@ -58,6 +59,8 @@ def with_locale_cs_cz() -> Iterator[None]:
orig = locale.getlocale()
try:
load_locale("cs_CZ")
+ if dumb_sort():
+ pytest.skip("requires a functioning locale library to run")
except locale.Error:
pytest.skip("requires cs_CZ locale to be installed")
else: