mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Avoided assignment followed by immediate return.
Identified using the following command:
$ pcre2grep --line-number --multiline --recursive \
"(?s)(\n +)(\w+) = [^\n]+\1return \2;?$" \
django docs extras js_tests scripts tests
This commit is contained in:
parent
d3cb91db87
commit
2bc47d7fe9
5 changed files with 6 additions and 12 deletions
|
|
@ -156,8 +156,7 @@ class TestSuiteTests(SimpleTestCase):
|
|||
def make_tests(self):
|
||||
"""Return an iterable of tests."""
|
||||
suite = self.make_test_suite()
|
||||
tests = list(iter_test_cases(suite))
|
||||
return tests
|
||||
return list(iter_test_cases(suite))
|
||||
|
||||
def test_shuffle_tests(self):
|
||||
tests = self.make_tests()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue