summaryrefslogtreecommitdiff
path: root/tests/empty
diff options
context:
space:
mode:
Diffstat (limited to 'tests/empty')
-rw-r--r--tests/empty/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/empty/tests.py b/tests/empty/tests.py
index 824c1f16e7..9fcd7a978e 100644
--- a/tests/empty/tests.py
+++ b/tests/empty/tests.py
@@ -1,5 +1,4 @@
from django.apps import app_cache
-from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test.utils import override_settings
from django.utils import six
@@ -31,6 +30,6 @@ class NoModelTests(TestCase):
"""
@override_settings(INSTALLED_APPS=("empty.no_models",))
def test_no_models(self):
- with six.assertRaisesRegex(self, ImproperlyConfigured,
+ with six.assertRaisesRegex(self, LookupError,
"No app with label 'no_models'."):
- app_cache.get_app('no_models')
+ app_cache.get_app_config('no_models')