mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.
Thanks Collin Anderson for the review.
This commit is contained in:
parent
caf5cd7ba7
commit
b2aad7b836
37 changed files with 123 additions and 122 deletions
|
@ -429,7 +429,7 @@ class ModelTest(TestCase):
|
|||
pub_date=datetime(2008, 12, 31, 23, 59, 59, 999999),
|
||||
)
|
||||
|
||||
s = set([a10, a11, a12])
|
||||
s = {a10, a11, a12}
|
||||
self.assertTrue(Article.objects.get(headline='Article 11') in s)
|
||||
|
||||
def test_field_ordering(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue