From d55a1e5809b424907528af42bfdfc2991ef11651 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 3 Feb 2022 11:20:46 +0100 Subject: [4.0.x] Refs #33476 -- Refactored problematic code before reformatting by Black. In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) Backport of c5cd8783825b5f6384417dac5f3889b4210b7d08 from main. --- tests/file_uploads/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/file_uploads') diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py index 21cc6c2ac8..8c84fa786b 100644 --- a/tests/file_uploads/tests.py +++ b/tests/file_uploads/tests.py @@ -626,8 +626,7 @@ class FileUploadTests(TestCase): 'Content-Disposition: form-data; name="file_field"; filename="MiXeD_cAsE.txt"', 'Content-Type: application/octet-stream', '', - 'file contents\n' - '', + 'file contents\n', '--%(boundary)s--\r\n', ] response = self.client.post( -- cgit v1.3