|
31 | 31 |
|
32 | 32 | import pandas.index as _index
|
33 | 33 |
|
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 |
38 | 35 | import pandas.core.datetools as dt
|
39 | 36 | from numpy.random import rand
|
40 | 37 | from numpy.testing import assert_array_equal
|
41 | 38 | from pandas.util.testing import assert_frame_equal
|
42 | 39 | import pandas.compat as compat
|
43 |
| -from pandas.core.datetools import BDay |
44 | 40 | import pandas.core.common as com
|
45 | 41 | from pandas import concat
|
46 | 42 | from pandas import _np_version_under1p7
|
@@ -2071,10 +2067,9 @@ def test_join_with_period_index(self):
|
2071 | 2067 | s = df.iloc[:5, 0]
|
2072 | 2068 | joins = 'left', 'right', 'inner', 'outer'
|
2073 | 2069 |
|
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'): |
2078 | 2073 | df.columns.join(s.index, how=join)
|
2079 | 2074 |
|
2080 | 2075 |
|
|
0 commit comments