diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-01-28 07:01:35 -0800 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2019-01-28 11:15:06 -0500 |
commit | 7785e03ba89aafbd949191f126361fb9103cb980 (patch) | |
tree | 5776f7063604285445cfcebf6efb42fd5d063f60 /tests/staticfiles_tests | |
parent | 7444f3252757ed4384623e5afd7dcfeef3e0c74e (diff) | |
download | django-7785e03ba89aafbd949191f126361fb9103cb980.tar.gz |
Fixed #30137 -- Replaced OSError aliases with the canonical OSError.
Used more specific errors (e.g. FileExistsError) as appropriate.
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r-- | tests/staticfiles_tests/cases.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/staticfiles_tests/cases.py b/tests/staticfiles_tests/cases.py index ea746164a6..24de4e029e 100644 --- a/tests/staticfiles_tests/cases.py +++ b/tests/staticfiles_tests/cases.py @@ -23,7 +23,7 @@ class BaseStaticFilesMixin: ) def assertFileNotFound(self, filepath): - with self.assertRaises(IOError): + with self.assertRaises(OSError): self._get_file(filepath) def render_template(self, template, **kwargs): |