Skip to content

Commit c3ae17d

Browse files
authored
TST/CI: Fix test_repr on musl for dateutil 2.9 (#57726)
* TST/CI: Fix test_repr on musl * Fix windows test too * Check other call * Remap US/Pacific to America/Los_Angeles * remove debug
1 parent 6fa2a4b commit c3ae17d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tests/io/pytables/test_timezones.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_append_with_timezones(setup_path, gettz):
104104

105105
msg = (
106106
r"invalid info for \[values_block_1\] for \[tz\], "
107-
r"existing_value \[(dateutil/.*)?US/Eastern\] "
107+
r"existing_value \[(dateutil/.*)?(US/Eastern|America/New_York)\] "
108108
r"conflicts with new value \[(dateutil/.*)?EET\]"
109109
)
110110
with pytest.raises(ValueError, match=msg):

pandas/tests/scalar/timestamp/test_formats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_isoformat(ts, timespec, expected_iso):
8989

9090
class TestTimestampRendering:
9191
@pytest.mark.parametrize(
92-
"tz", ["UTC", "Asia/Tokyo", "US/Eastern", "dateutil/US/Pacific"]
92+
"tz", ["UTC", "Asia/Tokyo", "US/Eastern", "dateutil/America/Los_Angeles"]
9393
)
9494
@pytest.mark.parametrize("freq", ["D", "M", "S", "N"])
9595
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)