diff options
| author | Hasan <hasan.r67@gmail.com> | 2016-01-18 12:15:45 +0330 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-01-29 13:37:33 -0500 |
| commit | 26ad01719d73823e65c0358a2ee9941e0a888a63 (patch) | |
| tree | 9e458f4c3428400e0970554ce19f6ed02e862a3b /tests/app_loading | |
| parent | 253adc2b8a52982139d40c4f55b3fd446e1cb8f3 (diff) | |
Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate.
Diffstat (limited to 'tests/app_loading')
| -rw-r--r-- | tests/app_loading/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/app_loading/tests.py b/tests/app_loading/tests.py index e068508e6c..a79bdaec04 100644 --- a/tests/app_loading/tests.py +++ b/tests/app_loading/tests.py @@ -5,7 +5,6 @@ import os from django.apps import apps from django.test import SimpleTestCase from django.test.utils import extend_sys_path -from django.utils import six from django.utils._os import upath @@ -57,7 +56,7 @@ class EggLoadingTest(SimpleTestCase): """Loading an app from an egg that has an import error in its models module raises that error""" egg_name = '%s/brokenapp.egg' % self.egg_dir with extend_sys_path(egg_name): - with six.assertRaisesRegex(self, ImportError, 'modelz'): + with self.assertRaisesMessage(ImportError, 'modelz'): with self.settings(INSTALLED_APPS=['broken_app']): pass |
