diff options
-rw-r--r-- | .github/workflows/tests.yml | 2 | ||||
-rw-r--r-- | tests/conftest.py | 3 |
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: |