summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2023-04-18 21:35:31 -0700
committerSeth Morton <seth.m.morton@gmail.com>2023-04-18 21:35:31 -0700
commit51b2fd3b581b35b5f07b0ad58631ced7e20d0276 (patch)
tree28c9ad6e73b066c75b81fa20cbc82bfd9691986a
parentfb10929384240fb64c361fb0b58318f8b08f4a45 (diff)
downloadnatsort-51b2fd3b581b35b5f07b0ad58631ced7e20d0276.tar.gz
Don't bother with ISO8858-1 localeHEADmain
Just use UTF8.
-rw-r--r--tests/conftest.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index cda2aaf..2ae04fc 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -19,11 +19,8 @@ hypothesis.settings.register_profile(
def load_locale(x: str) -> None:
- """Convenience to load a locale, trying ISO8859-1 first."""
- try:
- locale.setlocale(locale.LC_ALL, str("{}.ISO8859-1".format(x)))
- except locale.Error:
- locale.setlocale(locale.LC_ALL, str("{}.UTF-8".format(x)))
+ """Convenience to load a locale."""
+ locale.setlocale(locale.LC_ALL, str("{}.UTF-8".format(x)))
@pytest.fixture()