1
0
forked from pool/python-Django
python-Django/i18n_test_extraction.patch
Dominique Leuenberger 5a89231331 Accepting request 825714 from home:aplanas:branches:devel:languages:python:django
- Update to 3.1
  * Asynchronous views and middleware support
  * JSONField for all supported database backends
  * DEFAULT_HASHING_ALGORITHM settings¶
  * Read https://docs.djangoproject.com/en/3.1/releases/3.1/
- Drop fix-selenium-test.patch. Already upstream.
- Add i18n_test_extraction.patch to support xgettext 0.21

OBS-URL: https://build.opensuse.org/request/show/825714
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-Django?expand=0&rev=67
2020-08-12 07:29:18 +00:00

22 lines
860 B
Diff

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')