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
|
@ -266,7 +266,7 @@ class SimpleLazyObjectTestCase(LazyObjectTestCase):
|
|||
|
||||
def test_list_set(self):
|
||||
lazy_list = SimpleLazyObject(lambda: [1, 2, 3, 4, 5])
|
||||
lazy_set = SimpleLazyObject(lambda: set([1, 2, 3, 4]))
|
||||
lazy_set = SimpleLazyObject(lambda: {1, 2, 3, 4})
|
||||
self.assertTrue(1 in lazy_list)
|
||||
self.assertTrue(1 in lazy_set)
|
||||
self.assertFalse(6 in lazy_list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue