-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
|
||
__author__ = '[email protected] (Joe Gregorio)' | ||
|
||
from six import PY3 | ||
from six import BytesIO, StringIO | ||
from io import FileIO | ||
from six.moves.urllib.parse import urlencode | ||
|
@@ -228,6 +229,7 @@ def test_media_io_base_upload_serializable(self): | |
except NotImplementedError: | ||
pass | ||
|
||
@unittest.skipIf(PY3, 'Strings and Bytes are different types') | ||
def test_media_io_base_upload_from_string_io(self): | ||
f = open(datafile('small.png'), 'rb') | ||
fd = StringIO(f.read()) | ||
|