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.
This commit is contained in:
Preston Timmons 2015-03-05 09:06:01 -06:00 committed by Tim Graham
parent 9a4a9a8a49
commit fb7d681705
1 changed files with 1 additions and 1 deletions

View File

@ -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')