diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-06-01 16:08:59 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-01 19:08:59 -0400 |
| commit | 2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 (patch) | |
| tree | 65b8e60b858e4f073a04c2bbf976b8f43fe0cff6 /tests/aggregation | |
| parent | edee5a8de6afb34a9247de2bb73ab66397a6e573 (diff) | |
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
Diffstat (limited to 'tests/aggregation')
| -rw-r--r-- | tests/aggregation/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index 8178cb8bcc..8cf0596347 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -1114,7 +1114,7 @@ class AggregateTestCase(TestCase): # test completely changing how the output is rendered def lower_case_function_override(self, compiler, connection): sql, params = compiler.compile(self.source_expressions[0]) - substitutions = dict(function=self.function.lower(), expressions=sql) + substitutions = {'function': self.function.lower(), 'expressions': sql} substitutions.update(self.extra) return self.template % substitutions, params setattr(MySum, 'as_' + connection.vendor, lower_case_function_override) @@ -1141,7 +1141,7 @@ class AggregateTestCase(TestCase): # test overriding all parts of the template def be_evil(self, compiler, connection): - substitutions = dict(function='MAX', expressions='2') + substitutions = {'function': 'MAX', 'expressions': '2'} substitutions.update(self.extra) return self.template % substitutions, () setattr(MySum, 'as_' + connection.vendor, be_evil) |
