Skip to content

Commit 7261659

Browse files
committed
Python2 compat? (Have not tested locally)
1 parent 155d557 commit 7261659

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/io/test_html.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from pandas import (DataFrame, MultiIndex, read_csv, Timestamp, Index,
1616
date_range, Series)
17-
from pandas.compat import (map, zip, StringIO, BytesIO,
17+
from pandas.compat import (map, zip, u, StringIO, BytesIO,
1818
is_platform_windows, PY3, reload)
1919
from pandas.io.common import URLError, file_path_to_url
2020
import pandas.io.html
@@ -911,7 +911,8 @@ def test_computer_sales_page(self):
911911
# After #kipping the empty row, header=[0,1] picks the two <th>-only
912912
# rows.
913913
df = self.read_html(data, header=[0, 1])[0]
914-
assert df.columns[3] == ('Three months ended April\xa030', '2013.1')
914+
assert df.columns[3] == (u('Three months ended April\xa030'),
915+
u('2013.1'))
915916
assert df['Three months ended April\xa030', '2013.1'][2] == '3718'
916917

917918
def test_wikipedia_states_table(self):

0 commit comments

Comments
 (0)