summaryrefslogtreecommitdiff
path: root/tests/test_multithreading.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-03-28 10:14:27 +0000
committerGerrit Code Review <review@openstack.org>2014-03-28 10:14:27 +0000
commitb6ecec3cca3863414ddabf4e8e0606e8a71bd7af (patch)
tree975b2cc53aca8cd6c492cbc7c2695273d94d6197 /tests/test_multithreading.py
parent14f0c89cc10d1705bf9267908e69ce1221da14c6 (diff)
parent6d5a4749b5df9101dd5872987d3458b4d9c0df8a (diff)
downloadpython-swiftclient-b6ecec3cca3863414ddabf4e8e0606e8a71bd7af.tar.gz
Merge "Python 3: cast map() result to list"
Diffstat (limited to 'tests/test_multithreading.py')
-rw-r--r--tests/test_multithreading.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_multithreading.py b/tests/test_multithreading.py
index 1754f5d..c12f20c 100644
--- a/tests/test_multithreading.py
+++ b/tests/test_multithreading.py
@@ -141,7 +141,7 @@ class TestQueueFunctionManager(ThreadTestCase):
input_queue.put('go boom')
self.assertEqual(self.starting_thread_count, threading.active_count())
- error_strs = map(str, self.thread_manager.error.call_args_list)
+ error_strs = list(map(str, self.thread_manager.error.call_args_list))
self.assertEqual(1, len(error_strs))
self.assertTrue('Exception: I went boom!' in error_strs[0])
@@ -174,7 +174,7 @@ class TestQueueFunctionManager(ThreadTestCase):
input_queue.put('item%d' % i if i % 2 == 0 else 'go boom')
self.assertEqual(self.starting_thread_count, threading.active_count())
- error_strs = map(str, self.thread_manager.error.call_args_list)
+ error_strs = list(map(str, self.thread_manager.error.call_args_list))
self.assertEqual(10, len(error_strs))
self.assertTrue(all(['Exception: I went boom!' in s for s in
error_strs]))
@@ -196,7 +196,7 @@ class TestQueueFunctionManager(ThreadTestCase):
input_queue.put('item%d' % i if i % 2 == 0 else 'c boom')
self.assertEqual(self.starting_thread_count, threading.active_count())
- error_strs = map(str, self.thread_manager.error.call_args_list)
+ error_strs = list(map(str, self.thread_manager.error.call_args_list))
self.assertEqual(10, len(error_strs))
stringification = 'Client Boom: ' \
'http://192.168.22.1:80/booze 404 to much no sir!'