From 48ed73fb74213ba9ae2fdcc42d18a5a3e7737fe0 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 12 May 2020 08:52:23 +0200 Subject: [3.0.x] Fixed E128, E741 flake8 warnings. Backport of 0668164b4ac93a5be79f5b87fae83c657124d9ab from master. --- tests/staticfiles_tests/test_management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/staticfiles_tests/test_management.py') diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py index 7630efbd9b..48ca3eeb47 100644 --- a/tests/staticfiles_tests/test_management.py +++ b/tests/staticfiles_tests/test_management.py @@ -70,7 +70,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase): findstatic returns all candidate files if run without --first and -v1. """ result = call_command('findstatic', 'test/file.txt', verbosity=1, stdout=StringIO()) - lines = [l.strip() for l in result.split('\n')] + lines = [line.strip() for line in result.split('\n')] self.assertEqual(len(lines), 3) # three because there is also the "Found here" line self.assertIn('project', lines[1]) self.assertIn('apps', lines[2]) @@ -80,7 +80,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase): findstatic returns all candidate files if run without --first and -v0. """ result = call_command('findstatic', 'test/file.txt', verbosity=0, stdout=StringIO()) - lines = [l.strip() for l in result.split('\n')] + lines = [line.strip() for line in result.split('\n')] self.assertEqual(len(lines), 2) self.assertIn('project', lines[0]) self.assertIn('apps', lines[1]) @@ -91,7 +91,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase): Also, test that findstatic returns the searched locations with -v2. """ result = call_command('findstatic', 'test/file.txt', verbosity=2, stdout=StringIO()) - lines = [l.strip() for l in result.split('\n')] + lines = [line.strip() for line in result.split('\n')] self.assertIn('project', lines[1]) self.assertIn('apps', lines[2]) self.assertIn("Looking in the following locations:", lines[3]) -- cgit v1.3