Skip to content

Commit 9c0b287

Browse files
committed
Add tz_aware_fixture in test_nearest_upsample_with_limit
1 parent 42cf884 commit 9c0b287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/resample/test_datetime_index.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ def test_upsample_with_limit():
537537

538538
@pytest.mark.parametrize("freq", ["Y", "10M", "5D", "10H", "5Min", "10S"])
539539
@pytest.mark.parametrize("rule", ["Y", "3M", "15D", "30H", "15Min", "30S"])
540-
def test_nearest_upsample_with_limit(freq, rule):
541-
rng = date_range("1/1/2000", periods=3, freq=freq)
540+
def test_nearest_upsample_with_limit(tz_aware_fixture, freq, rule):
541+
rng = date_range("1/1/2000", periods=3, freq=freq, tz=tz_aware_fixture)
542542
ts = Series(np.random.randn(len(rng)), rng)
543543

544544
result = ts.resample(rule).nearest(limit=2)

0 commit comments

Comments
 (0)