From fb7d681705a92c6d510b06822450d6a94ed1623f Mon Sep 17 00:00:00 2001 From: Preston Timmons Date: Thu, 5 Mar 2015 09:06:01 -0600 Subject: [PATCH] Fixed test_notafile_error to pass on Windows. This test failed because a different error code is raised on Windows when opening a directory. Since the particular message isn't as important to this test as the fact that the original IOError is reraised, this fixes the test by making the assertion more generic. --- tests/template_tests/test_loaders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')