summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2015-04-13 11:56:58 -0400
committerSimon Charette <charette.s@gmail.com>2015-05-20 12:50:40 -0400
commit3db21c351b9b1108954c388799d35c8dad7dfc19 (patch)
tree1e3d680612d785f69c33328d3ddb9e4047a83df3
parentbc87061a3c7c8d6b4d2469f35cc78683c6cff647 (diff)
Refs #24652 -- Enforced test isolation in file_storage tests.
-rw-r--r--tests/file_storage/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py
index 2b41b5abd8..33fd9cc14d 100644
--- a/tests/file_storage/tests.py
+++ b/tests/file_storage/tests.py
@@ -19,7 +19,9 @@ from django.core.files.storage import FileSystemStorage, get_storage_class
from django.core.files.uploadedfile import (
InMemoryUploadedFile, SimpleUploadedFile, TemporaryUploadedFile,
)
-from django.test import LiveServerTestCase, SimpleTestCase, override_settings
+from django.test import (
+ LiveServerTestCase, SimpleTestCase, TestCase, override_settings,
+)
from django.utils import six
from django.utils._os import upath
from django.utils.six.moves.urllib.request import urlopen
@@ -429,7 +431,7 @@ class CustomStorageTests(FileStorageTests):
self.storage.delete(second)
-class FileFieldStorageTests(SimpleTestCase):
+class FileFieldStorageTests(TestCase):
def tearDown(self):
shutil.rmtree(temp_storage_location)