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

Conversation

cabarnes
Copy link
Member

@cabarnes cabarnes commented Jun 5, 2017

len does not exist in python 3 StringIO.

@cabarnes cabarnes requested a review from btimby June 5, 2017 18:50
@coveralls
Copy link

coveralls commented Jun 5, 2017

Coverage Status

Coverage remained the same at 71.193% when pulling 77eab28 on fix-integration-testing into a97eb9f on master.

@@ -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

@cabarnes cabarnes merged commit cdc333f into master Jun 6, 2017
@cabarnes cabarnes deleted the fix-integration-testing branch June 6, 2017 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants