1
0
forked from pool/python-Django
python-Django/i18n_test_extraction.patch

22 lines
860 B
Diff
Raw Normal View History

Index: Django-3.1/tests/i18n/test_extraction.py
===================================================================
--- Django-3.1.orig/tests/i18n/test_extraction.py
+++ Django-3.1/tests/i18n/test_extraction.py
@@ -6,7 +6,7 @@
import warnings
from io import StringIO
from pathlib import Path
-from unittest import mock, skipIf, skipUnless
+from unittest import mock, skip, skipIf, skipUnless
from admin_scripts.tests import AdminScriptTestCase
@@ -225,6 +225,7 @@
open(os.path.join(self.test_dir, 'vidéo.txt'), 'a').close()
management.call_command('makemessages', locale=[LOCALE], verbosity=0)
+ @skip("xgettext 0.21 do not produce warning")
def test_extraction_warning(self):
"""test xgettext warning about multiple bare interpolation placeholders"""
shutil.copyfile('./code.sample', './code_sample.py')