diff --git a/tests/template_tests/test_loaders.py b/tests/template_tests/test_loaders.py index e679624ed3..cdebbfb042 100644 --- a/tests/template_tests/test_loaders.py +++ b/tests/template_tests/test_loaders.py @@ -262,7 +262,7 @@ class FileSystemLoaderTests(SimpleTestCase): self.engine.get_template(tmpfile.name) def test_notafile_error(self): - with self.assertRaisesMessage(IOError, 'Is a directory'): + with self.assertRaises(IOError): self.engine.get_template('first')