diff options
author | Seth Morton <seth.m.morton@gmail.com> | 2023-04-18 21:35:31 -0700 |
---|---|---|
committer | Seth Morton <seth.m.morton@gmail.com> | 2023-04-18 21:35:31 -0700 |
commit | 51b2fd3b581b35b5f07b0ad58631ced7e20d0276 (patch) | |
tree | 28c9ad6e73b066c75b81fa20cbc82bfd9691986a | |
parent | fb10929384240fb64c361fb0b58318f8b08f4a45 (diff) | |
download | natsort-main.tar.gz |
Just use UTF8.
-rw-r--r-- | tests/conftest.py | 7 |
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() |