Loading tests/file_uploads/tests.py +0 −2 Original line number Diff line number Diff line Loading @@ -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) Loading tests/runtests.py +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ import warnings import django from django import contrib from django.apps import apps, AppConfig from django.apps import apps from django.conf import settings from django.db import connection from django.test import TransactionTestCase, TestCase Loading Loading
tests/file_uploads/tests.py +0 −2 Original line number Diff line number Diff line Loading @@ -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) Loading
tests/runtests.py +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ import warnings import django from django import contrib from django.apps import apps, AppConfig from django.apps import apps from django.conf import settings from django.db import connection from django.test import TransactionTestCase, TestCase Loading