diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-06 06:14:30 -0800 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-06 15:14:30 +0100 |
| commit | 39791c8e6de3a71879eb26dd9f8d01273847f395 (patch) | |
| tree | 4de3a588b3098cd51f5a5ae0b1830d36a57a1ab3 /tests/template_tests | |
| parent | e3c2fae4cd549a6aeefcf7b217ba4b173489e18c (diff) | |
Harmonized Windows checks in tests to a single style.
Diffstat (limited to 'tests/template_tests')
| -rw-r--r-- | tests/template_tests/test_loaders.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template_tests/test_loaders.py b/tests/template_tests/test_loaders.py index 3c5282a8ea..258b18fca0 100644 --- a/tests/template_tests/test_loaders.py +++ b/tests/template_tests/test_loaders.py @@ -196,7 +196,7 @@ class FileSystemLoaderTests(SimpleTestCase): def test_notafile_error(self): # Windows raises PermissionError when trying to open a directory. - with self.assertRaises(PermissionError if sys.platform.startswith('win') else IsADirectoryError): + with self.assertRaises(PermissionError if sys.platform == 'win32' else IsADirectoryError): self.engine.get_template('first') |
