|
11 | 11 | from pandas.tslib import get_timezone
|
12 | 12 | from pandas._period import period_asfreq, period_ordinal
|
13 | 13 | from pandas.tseries.index import date_range, DatetimeIndex
|
14 |
| -from pandas.tseries.frequencies import get_freq |
| 14 | +from pandas.tseries.frequencies import ( |
| 15 | + get_freq, |
| 16 | + US_RESO, MS_RESO, S_RESO, H_RESO, D_RESO, T_RESO |
| 17 | +) |
15 | 18 | import pandas.tseries.tools as tools
|
16 | 19 | import pandas.tseries.offsets as offsets
|
17 | 20 | import pandas.util.testing as tm
|
@@ -1307,11 +1310,11 @@ def test_resolution(self):
|
1307 | 1310 |
|
1308 | 1311 | for freq, expected in zip(['A', 'Q', 'M', 'D', 'H', 'T',
|
1309 | 1312 | 'S', 'L', 'U'],
|
1310 |
| - [period.D_RESO, period.D_RESO, |
1311 |
| - period.D_RESO, period.D_RESO, |
1312 |
| - period.H_RESO, period.T_RESO, |
1313 |
| - period.S_RESO, period.MS_RESO, |
1314 |
| - period.US_RESO]): |
| 1313 | + [D_RESO, D_RESO, |
| 1314 | + D_RESO, D_RESO, |
| 1315 | + H_RESO, T_RESO, |
| 1316 | + S_RESO, MS_RESO, |
| 1317 | + US_RESO]): |
1315 | 1318 | for tz in [None, 'Asia/Tokyo', 'US/Eastern',
|
1316 | 1319 | 'dateutil/US/Eastern']:
|
1317 | 1320 | idx = date_range(start='2013-04-01', periods=30, freq=freq,
|
|
0 commit comments