mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26125 -- Fixed E731 flake warnings.
This commit is contained in:
@@ -126,7 +126,8 @@ class ImmutableListTests(SimpleTestCase):
|
||||
class DictWrapperTests(SimpleTestCase):
|
||||
|
||||
def test_dictwrapper(self):
|
||||
f = lambda x: "*%s" % x
|
||||
def f(x):
|
||||
return "*%s" % x
|
||||
d = DictWrapper({'a': 'a'}, f, 'xx_')
|
||||
self.assertEqual(
|
||||
"Normal: %(a)s. Modified: %(xx_a)s" % d,
|
||||
|
||||
Reference in New Issue
Block a user