summaryrefslogtreecommitdiff
path: root/tests/unit/test_multithreading.py
diff options
context:
space:
mode:
authorHiroshi Miura <miurahr@nttdata.co.jp>2015-08-03 12:20:44 +0900
committerHiroshi Miura <miurahr@nttdata.co.jp>2015-08-06 18:50:33 +0900
commitbe0f1aad8a5ed6f8d61016902c713db609ad834c (patch)
tree59736094c2439b6238b4e888b8d1d287db1db7b0 /tests/unit/test_multithreading.py
parenta056f1b3742812a2c861a0d01678dfed3b0087e4 (diff)
downloadpython-swiftclient-be0f1aad8a5ed6f8d61016902c713db609ad834c.tar.gz
change deprecated assertEquals to assertEqual
fix against H234: assertEquals() logs a DeprecationWarning in Python3.x. use assertEqual() instead. Closes-bug: #1480776 Change-Id: Iffda6bb5f2616d4af4567eeea37bb26531e34371 Signed-off-by: Hiroshi Miura <miurahr@nttdata.co.jp>
Diffstat (limited to 'tests/unit/test_multithreading.py')
-rw-r--r--tests/unit/test_multithreading.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_multithreading.py b/tests/unit/test_multithreading.py
index 42abbbf..2c45b47 100644
--- a/tests/unit/test_multithreading.py
+++ b/tests/unit/test_multithreading.py
@@ -88,7 +88,7 @@ class TestConnectionThreadPoolExecutor(ThreadTestCase):
f.result()
except Exception as e:
went_boom = True
- self.assertEquals('I went boom!', str(e))
+ self.assertEqual('I went boom!', str(e))
self.assertTrue(went_boom)
# Has the connection been returned to the pool?
@@ -112,7 +112,7 @@ class TestConnectionThreadPoolExecutor(ThreadTestCase):
f.result()
except Exception as e:
connection_failed = True
- self.assertEquals('This is a failed connection', str(e))
+ self.assertEqual('This is a failed connection', str(e))
self.assertTrue(connection_failed)
# Make sure we don't lock up on failed connections
@@ -122,7 +122,7 @@ class TestConnectionThreadPoolExecutor(ThreadTestCase):
f.result()
except Exception as e:
connection_failed = True
- self.assertEquals('This is a failed connection', str(e))
+ self.assertEqual('This is a failed connection', str(e))
self.assertTrue(connection_failed)
def test_lazy_connections(self):