Skip to content

Commit e5936eb

Browse files
committed
CLN: remove unused imports
1 parent cbe2366 commit e5936eb

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

pandas/tseries/tests/test_timeseries.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,12 @@
3131

3232
import pandas.index as _index
3333

34-
from pandas.compat import(
35-
range, long, StringIO, lrange, lmap, map, zip, cPickle as pickle, product
36-
)
37-
from pandas import read_pickle
34+
from pandas.compat import range, long, StringIO, lrange, lmap, zip, product
3835
import pandas.core.datetools as dt
3936
from numpy.random import rand
4037
from numpy.testing import assert_array_equal
4138
from pandas.util.testing import assert_frame_equal
4239
import pandas.compat as compat
43-
from pandas.core.datetools import BDay
4440
import pandas.core.common as com
4541
from pandas import concat
4642
from pandas import _np_version_under1p7
@@ -2071,10 +2067,9 @@ def test_join_with_period_index(self):
20712067
s = df.iloc[:5, 0]
20722068
joins = 'left', 'right', 'inner', 'outer'
20732069

2074-
with tm.assertRaisesRegexp(ValueError,
2075-
'can only call with other PeriodIndex-ed '
2076-
'objects'):
2077-
for join in joins:
2070+
for join in joins:
2071+
with tm.assertRaisesRegexp(ValueError, 'can only call with other '
2072+
'PeriodIndex-ed objects'):
20782073
df.columns.join(s.index, how=join)
20792074

20802075

0 commit comments

Comments
 (0)