Skip to content

Commit d69692c

Browse files
author
MomIsBestFriend
committed
Fixed another test
1 parent 4fd071c commit d69692c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pandas/tests/tseries/offsets/test_offsets_properties.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -94,28 +94,18 @@ def test_on_offset_implementations(dt, offset):
9494
compare = (dt + offset) - offset
9595
assert offset.is_on_offset(dt) == (compare == dt)
9696

97-
98-
@pytest.mark.xfail(
99-
reason=(
100-
"res_v2 below is incorrect, needs to use the "
101-
"commented-out version with tz_localize. "
102-
"But with that fix in place, hypothesis then "
103-
"has errors in timezone generation."
104-
)
105-
)
10697
@given(gen_yqm_offset, gen_date_range)
10798
def test_apply_index_implementations(offset, rng):
10899
# offset.apply_index(dti)[i] should match dti[i] + offset
109100

110101
# TODO: test for that case separately
111102
assume(offset.n != 0)
112103

113-
# rng = pd.date_range(start='1/1/2000', periods=100000, freq='T')
114104
ser = pd.Series(rng)
115105

116106
res = rng + offset
117107
res_v2 = offset.apply_index(rng)
118-
# res_v2 = offset.apply_index(rng.tz_localize(None)).tz_localize(rng.tz)
108+
res_v2 = offset.apply_index(rng.tz_localize(None)).tz_localize(rng.tz)
119109
assert (res == res_v2).all()
120110

121111
# apply_index is only for indexes, not series, so no res2_v2

0 commit comments

Comments
 (0)