depot/third_party/nixpkgs/pkgs/development/python-modules/strpdatetime/fix-locale.patch
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

10 lines
456 B
Diff

diff --git a/tests/test_strpdatetime.py b/tests/test_strpdatetime.py
index 6c371d6..a3d0232 100644
--- a/tests/test_strpdatetime.py
+++ b/tests/test_strpdatetime.py
@@ -44,5 +44,4 @@ TEST_DATA = [
@pytest.mark.parametrize("string, format, expected", TEST_DATA)
def test_datetime_strptime(string, format, expected):
"""Test datetime_strptime"""
- locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
assert strpdatetime(string, format) == expected