From 96d46e5a57fc6281f9c4b2cc06f8736560cfbe8a Mon Sep 17 00:00:00 2001 From: Seth Morton Date: Fri, 10 Dec 2021 08:08:06 -0800 Subject: Add new cs_CZ locale into the CI environment --- .github/workflows/tests.yml | 2 +- tests/conftest.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1