Skip to content

Use correct byte count function #16

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 6, 2017
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
2 changes: 1 addition & 1 deletion test/test_smartfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def upload(self):
f = StringIO(file_contents)
f.seek(0)
self.api.upload(TESTFN, f)
self.assertEquals(self.get_data()['size'], f.len)
self.assertEquals(self.get_data()['size'], f.tell())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the tell function exist in python2 as well? Do we want to ensure backward compatibility correct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ryanb58 Yes, Travis CI is testing with Python 2.7, 3.3, and 3.6

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


def download(self):
self.api.download(TESTFN)
Expand Down