diff options
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( |
