diff options
Diffstat (limited to 'tests/template_backends/test_django.py')
| -rw-r--r-- | tests/template_backends/test_django.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/template_backends/test_django.py b/tests/template_backends/test_django.py index 6f5035c741..047af67df5 100644 --- a/tests/template_backends/test_django.py +++ b/tests/template_backends/test_django.py @@ -104,13 +104,14 @@ class DjangoTemplatesTests(TemplateStringsTests): InvalidTemplateLibrary, "ImportError raised when trying to load " "'template_backends.apps.importerror.templatetags.broken_tags'" - ): + ) as cm: DjangoTemplates({ 'DIRS': [], 'APP_DIRS': False, 'NAME': 'django', 'OPTIONS': {}, }) + self.assertIsInstance(cm.exception.__cause__, ImportError) def test_builtins_discovery(self): engine = DjangoTemplates({ |
