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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user