mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
This commit is contained in:
parent
2a5708a304
commit
21046e7773
43 changed files with 84 additions and 85 deletions
|
@ -755,7 +755,7 @@ class BackendTestCase(TransactionTestCase):
|
|||
|
||||
self.assertIsInstance(connection.queries, list)
|
||||
self.assertIsInstance(connection.queries[0], dict)
|
||||
self.assertCountEqual(connection.queries[0].keys(), ['sql', 'time'])
|
||||
self.assertCountEqual(connection.queries[0], ['sql', 'time'])
|
||||
|
||||
reset_queries()
|
||||
self.assertEqual(0, len(connection.queries))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue