From 417ec4a68b0460bd563801549ca90de64e55face Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Mon, 26 May 2014 04:01:41 +0700 Subject: Fixed a ResourceWarning that wasn't properly fixed by the previous commit. Also removed unused import in runtests.py. --- tests/file_uploads/tests.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/file_uploads') diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py index 0e8cf7ff9f..b6f8cfe17e 100644 --- a/tests/file_uploads/tests.py +++ b/tests/file_uploads/tests.py @@ -271,12 +271,10 @@ class FileUploadTests(TestCase): file = tempfile.NamedTemporaryFile with file() as smallfile, file() as bigfile: # A small file (under the 5M quota) - smallfile = tempfile.NamedTemporaryFile() smallfile.write(b'a' * (2 ** 21)) smallfile.seek(0) # A big file (over the quota) - bigfile = tempfile.NamedTemporaryFile() bigfile.write(b'a' * (10 * 2 ** 20)) bigfile.seek(0) -- cgit v1.3