Skip to content

Commit 48e49ac

Browse files
committed
TST: remove some warnings in test_timeseries.py
1 parent eeb81f6 commit 48e49ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tseries/tests/test_timeseries.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def test_asfreq_resample_set_correct_freq(self):
12621262
self.assertEqual(df.asfreq('D').index.freq, 'D')
12631263

12641264
# does .resample() set .freq correctly?
1265-
self.assertEqual(df.resample('D').index.freq, 'D')
1265+
self.assertEqual(df.resample('D').asfreq().index.freq, 'D')
12661266

12671267
def test_promote_datetime_date(self):
12681268
rng = date_range('1/1/2000', periods=20)
@@ -4783,7 +4783,8 @@ def test_to_datetime_with_non_exact(self):
47834783
s = Series(['19MAY11', 'foobar19MAY11', '19MAY11:00:00:00',
47844784
'19MAY11 00:00:00Z'])
47854785
result = to_datetime(s, format='%d%b%y', exact=False)
4786-
expected = to_datetime(s.str.extract('(\d+\w+\d+)'), format='%d%b%y')
4786+
expected = to_datetime(s.str.extract('(\d+\w+\d+)', expand=False),
4787+
format='%d%b%y')
47874788
assert_series_equal(result, expected)
47884789

47894790
def test_parse_nanoseconds_with_formula(self):

0 commit comments

Comments
 (0)