Skip to content
Prev Previous commit
Next Next commit
[LIB-813] correct StringIO imports;
  • Loading branch information
opalczynski committed Jul 21, 2016
commit 274076454c470e152285f21768904d58eb06eaf0
9 changes: 7 additions & 2 deletions tests/integration_tests_hosting.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
import StringIO
try:
# python2
from StringIO import StringIO
except ImportError:
# python3
from io import StringIO

from tests.integration_test import InstanceMixin, IntegrationTest

Expand All @@ -14,7 +19,7 @@ def setUp(self):
)

def test_create_file(self):
a_hosting_file = StringIO.StringIO()
a_hosting_file = StringIO()
a_hosting_file.write('h1 {color: #541231;}')
a_hosting_file.seek(0)

Expand Down