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 13:32:35 -0400
commite846ea0649b29df4dc1ecbac3b79769099e61a9c (patch)
tree7cc9d1aef7ac51b61041b6da460507d87467f6e6
parent525fd2f4055b206a57324480bbbe5b3e8f88ff91 (diff)
[1.8.x] Refs #24652 -- Enforced test isolation in file_storage tests.
Backport of 3db21c351b9b1108954c388799d35c8dad7dfc19 from master
-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 1e0f457163..18987c25c5 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)