Skip to content

TST/BUG: use BytesIO for Python 3.4 TestEncoding #7388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pandas/io/tests/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from pandas import (DataFrame, MultiIndex, read_csv, Timestamp, Index,
date_range, Series)
from pandas.compat import map, zip, StringIO, string_types
from pandas.compat import map, zip, StringIO, string_types, BytesIO
from pandas.io.common import URLError, urlopen, file_path_to_url
from pandas.io.html import read_html
from pandas.parser import CParserError
Expand Down Expand Up @@ -601,7 +601,7 @@ def read_filename(self, f, encoding):

def read_file_like(self, f, encoding):
with open(f, 'rb') as fobj:
return read_html(StringIO(fobj.read()), encoding=encoding,
return read_html(BytesIO(fobj.read()), encoding=encoding,
index_col=0)

def read_string(self, f, encoding):
Expand Down