mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23395 -- Limited line lengths to 119 characters.
This commit is contained in:
committed by
Tim Graham
parent
84b0a8d2aa
commit
b1e33ceced
@@ -182,7 +182,9 @@ class IfChangedTests(SimpleTestCase):
|
||||
# When the IfChangeNode stores state at 'self' it stays at '3' and skip the last yielded value below.
|
||||
iter2 = iter([1, 2, 3])
|
||||
output2 = template.render(Context({'foo': range(3), 'get_value': lambda: next(iter2)}))
|
||||
self.assertEqual(output2, '[0,1,2,3]', 'Expected [0,1,2,3] in second parallel template, got {}'.format(output2))
|
||||
self.assertEqual(
|
||||
output2, '[0,1,2,3]', 'Expected [0,1,2,3] in second parallel template, got {}'.format(output2)
|
||||
)
|
||||
yield 3
|
||||
|
||||
gen1 = gen()
|
||||
|
||||
Reference in New Issue
Block a user