Skip to content

Commit 7b93a5f

Browse files
committed
Fix python2 test failure
1 parent e2cef03 commit 7b93a5f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/test_html.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,10 @@ def test_computer_sales_page(self):
945945
# After #kipping the empty row, header=[0,1] picks the two <th>-only
946946
# rows.
947947
df = self.read_html(data, header=[0, 1])[0]
948-
assert df.columns[3] == (u('Three months ended April\xa030'),
949-
u('2013.1'))
950-
assert df['Three months ended April\xa030', '2013.1'][2] == '3718'
948+
949+
three_months = u('Three months ended April\xa030')
950+
assert df.columns[3] == (three_months, '2013.1')
951+
assert df[three_months, '2013.1'][2] == '3718'
951952

952953
def test_wikipedia_states_table(self):
953954
data = os.path.join(DATA_PATH, 'wikipedia_states.html')

0 commit comments

Comments
 (0)