summaryrefslogtreecommitdiff
path: root/tests/file_storage
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-01-28 07:01:35 -0800
committerTim Graham <timograham@gmail.com>2019-01-28 11:15:06 -0500
commit7785e03ba89aafbd949191f126361fb9103cb980 (patch)
tree5776f7063604285445cfcebf6efb42fd5d063f60 /tests/file_storage
parent7444f3252757ed4384623e5afd7dcfeef3e0c74e (diff)
Fixed #30137 -- Replaced OSError aliases with the canonical OSError.
Used more specific errors (e.g. FileExistsError) as appropriate.
Diffstat (limited to 'tests/file_storage')
-rw-r--r--tests/file_storage/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py
index 8c50abc9b0..991f1ff8cd 100644
--- a/tests/file_storage/tests.py
+++ b/tests/file_storage/tests.py
@@ -482,9 +482,9 @@ class FileStorageTests(SimpleTestCase):
f1 = ContentFile('chunks fails')
def failing_chunks():
- raise IOError
+ raise OSError
f1.chunks = failing_chunks
- with self.assertRaises(IOError):
+ with self.assertRaises(OSError):
self.storage.save('error.file', f1)
def test_delete_no_name(self):