mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
@@ -970,9 +970,7 @@ class ThreadTests(TransactionTestCase):
|
||||
t.start()
|
||||
t.join()
|
||||
# Each created connection got different inner connection.
|
||||
self.assertEqual(
|
||||
len(set(conn.connection for conn in connections_dict.values())),
|
||||
3)
|
||||
self.assertEqual(len({conn.connection for conn in connections_dict.values()}), 3)
|
||||
# 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