summaryrefslogtreecommitdiff
path: root/tests/test_multithreading.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_multithreading.py')
-rw-r--r--tests/test_multithreading.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_multithreading.py b/tests/test_multithreading.py
index c12f20c..b566837 100644
--- a/tests/test_multithreading.py
+++ b/tests/test_multithreading.py
@@ -18,8 +18,8 @@ import time
import mock
import testtools
import threading
-from cStringIO import StringIO
-from Queue import Queue, Empty
+import six
+from six.moves.queue import Queue, Empty
from swiftclient import multithreading as mt
from swiftclient.exceptions import ClientException
@@ -287,8 +287,8 @@ class TestMultiThreadingManager(ThreadTestCase):
], mock_qfq.call_args_list)
def test_printers(self):
- out_stream = StringIO()
- err_stream = StringIO()
+ out_stream = six.StringIO()
+ err_stream = six.StringIO()
with mt.MultiThreadingManager(
print_stream=out_stream,