Skip to content

Commit

Permalink
skip zoneinfo tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebv committed Mar 21, 2024
1 parent 71adeea commit 853f409
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import datetime
import sys
import zoneinfo

import pytest
Expand Down Expand Up @@ -67,12 +68,16 @@ class TestSoqlFormatting:
),
"2024-05-06T12:00:00.000+08:00",
),
(
pytest.param(
datetime.datetime(
*(2024, 5, 6, 12, 0, 0, 123000),
tzinfo=zoneinfo.ZoneInfo("America/New_York"),
),
"2024-05-06T12:00:00.123-04:00",
marks=pytest.mark.skipif(
sys.platform == "win32",
reason="Windows doesn't have IANA time zone database",
),
),
(datetime.date(2024, 5, 6), "2024-05-06"),
("foo", "'foo'"),
Expand Down

0 comments on commit 853f409

Please sign in to comment.