Skip to content

Commit 6ed30c4

Browse files
committed
fix unit test
1 parent b591b34 commit 6ed30c4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pandas/tests/indexes/datetimes/test_date_range.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,11 +1752,3 @@ def test_date_range_tzaware_endpoints_accept_ambiguous(self):
17521752
"1916-08-01", "1916-12-01", freq="MS", tz="Europe/Oslo", ambiguous=True
17531753
)
17541754
tm.assert_index_equal(res, exp)
1755-
1756-
def test_date_range_tzaware_endpoints_raise_ambiguous_raises_by_default(self):
1757-
# By default (`ambiguous="raise"`), an ambiguous DST transition
1758-
# should raise instead of guessing.
1759-
start = Timestamp("1916-08-01", tz="Europe/Oslo")
1760-
end = Timestamp("1916-12-01", tz="Europe/Oslo")
1761-
with pytest.raises(ValueError, match="Cannot infer dst time"):
1762-
date_range(start, end, freq="MS")

0 commit comments

Comments
 (0)