summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_datastructures.py
diff options
context:
space:
mode:
authoruserimack <mahendra.k12@gmail.com>2016-01-23 22:17:07 +0530
committerTim Graham <timograham@gmail.com>2016-01-25 14:23:43 -0500
commit60586dd7379b295b72d8af4e03423c286913b5e8 (patch)
tree6f834957ea76305fbcda40e23e836077890d36b8 /tests/utils_tests/test_datastructures.py
parentabc0777b63057e2ff97eee2ff184356051e14c47 (diff)
downloaddjango-60586dd7379b295b72d8af4e03423c286913b5e8.tar.gz
Fixed #26125 -- Fixed E731 flake warnings.
Diffstat (limited to 'tests/utils_tests/test_datastructures.py')
-rw-r--r--tests/utils_tests/test_datastructures.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/utils_tests/test_datastructures.py b/tests/utils_tests/test_datastructures.py
index 99f7a1d05f..d151f12bb5 100644
--- a/tests/utils_tests/test_datastructures.py
+++ b/tests/utils_tests/test_datastructures.py
@@ -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,