Skip to content

Commit

Permalink
TST: correction for freq in GH5332
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Apr 9, 2014
1 parent 0b7e917 commit e95bdce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tseries/tests/test_frequencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@ def test_series(self):
self.assertRaises(ValueError, lambda : infer_freq(Series(['foo','bar'])))

# cannot infer on PeriodIndex
for freq in [None, 'MS', 'Y']:
for freq in [None, 'L', 'Y']:
s = Series(period_range('2013',periods=10,freq=freq))
self.assertRaises(TypeError, lambda : infer_freq(s))

# DateTimeIndex
for freq in ['MS', 'L', 'S']:
for freq in ['M', 'L', 'S']:
s = Series(date_range('20130101',periods=10,freq=freq))
inferred = infer_freq(s)
self.assertEqual(inferred,freq)
Expand Down

0 comments on commit e95bdce

Please sign in to comment.