Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
[HOT-FIX] back to StringIO;
  • Loading branch information
opalczynski committed Sep 27, 2016
commit fab97e19883d743bb63cece6d2a0487b7f738ecb
6 changes: 3 additions & 3 deletions tests/integration_test_data_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

try:
# python2
from cStringIO import StringIO
from StringIO import StringIO
except ImportError:
# python3
from io import StringIO
Expand Down Expand Up @@ -138,9 +138,9 @@ def get_s3_file(cls, url):

def _create_object_with_file(self):
with open('tests/test_files/python-logo.png', 'rb') as f:
object = Object.please.create(
data_object = Object.please.create(
class_name=self.class_name,
test_field_a=self.initial_field_a,
test_field_file=f,
)
return object
return data_object
2 changes: 1 addition & 1 deletion tests/integration_tests_hosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

try:
# python2
from cStringIO import StringIO
from StringIO import StringIO
except ImportError:
# python3
from io import StringIO
Expand Down