1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Replaced deprecated TestCase methods. Refs #17049.

This commit is contained in:
Claude Paroz
2012-05-03 16:39:16 +02:00
parent e84f79f051
commit b52672d778
19 changed files with 80 additions and 80 deletions

View File

@@ -521,7 +521,7 @@ class ThreadTests(TestCase):
t = threading.Thread(target=runner)
t.start()
t.join()
self.assertEquals(len(connections_set), 3)
self.assertEqual(len(connections_set), 3)
# Finish by closing the connections opened by the other threads (the
# connection opened in the main thread will automatically be closed on
# teardown).
@@ -548,7 +548,7 @@ class ThreadTests(TestCase):
t = threading.Thread(target=runner)
t.start()
t.join()
self.assertEquals(len(connections_set), 6)
self.assertEqual(len(connections_set), 6)
# Finish by closing the connections opened by the other threads (the
# connection opened in the main thread will automatically be closed on
# teardown).