mirror of https://github.com/django/django.git
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:
parent
9a4a9a8a49
commit
fb7d681705
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue