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/i18n/test_extraction.py | |
| parent | 253adc2b8a52982139d40c4f55b3fd446e1cb8f3 (diff) | |
Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate.
Diffstat (limited to 'tests/i18n/test_extraction.py')
| -rw-r--r-- | tests/i18n/test_extraction.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index dd28a76c4f..2f8056560d 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -762,8 +762,8 @@ class CustomLayoutExtractionTests(ExtractorTests): def test_no_locale_raises(self): os.chdir(self.test_dir) - with six.assertRaisesRegex(self, management.CommandError, - "Unable to find a locale path to store translations for file"): + msg = "Unable to find a locale path to store translations for file" + with self.assertRaisesMessage(management.CommandError, msg): management.call_command('makemessages', locale=LOCALE, verbosity=0) @override_settings( |
