mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #20989 -- Removed useless explicit list comprehensions.
This commit is contained in:
@@ -42,7 +42,7 @@ class SchemaTests(TransactionTestCase):
|
||||
"table": connection.ops.quote_name(field.rel.through._meta.db_table),
|
||||
})
|
||||
except DatabaseError as e:
|
||||
if any([s in str(e).lower() for s in self.no_table_strings]):
|
||||
if any(s in str(e).lower() for s in self.no_table_strings):
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
@@ -53,7 +53,7 @@ class SchemaTests(TransactionTestCase):
|
||||
"table": connection.ops.quote_name(model._meta.db_table),
|
||||
})
|
||||
except DatabaseError as e:
|
||||
if any([s in str(e).lower() for s in self.no_table_strings]):
|
||||
if any(s in str(e).lower() for s in self.no_table_strings):
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user