summaryrefslogtreecommitdiff
path: root/tests/file_storage/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/file_storage/tests.py')
-rw-r--r--tests/file_storage/tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py
index 6d6949ef01..f7bbb343d6 100644
--- a/tests/file_storage/tests.py
+++ b/tests/file_storage/tests.py
@@ -953,7 +953,10 @@ class FieldCallableFileStorageTests(SimpleTestCase):
class NotStorage:
pass
- msg = "FileField.storage must be a subclass/instance of django.core.files.storage.Storage"
+ msg = (
+ "FileField.storage must be a subclass/instance of "
+ "django.core.files.storage.Storage"
+ )
for invalid_type in (NotStorage, str, list, set, tuple):
with self.subTest(invalid_type=invalid_type):
with self.assertRaisesMessage(TypeError, msg):