Accepting request 1037971 from devel:languages:python:django

- Fix tests problem related to jinja2 version
  # gh#django-compressor/django-compressor#1139
  # gh#django-compressor/django-compressor@bcdd21956a84

OBS-URL: https://build.opensuse.org/request/show/1037971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-compressor?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2022-11-25 12:12:18 +00:00 committed by Git OBS Bridge
commit 14b12c1918
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 24 18:26:17 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Fix tests problem related to jinja2 version
# gh#django-compressor/django-compressor#1139
# gh#django-compressor/django-compressor@bcdd21956a84
-------------------------------------------------------------------
Thu Aug 4 17:45:11 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python3-%{**}}
%define mod_name django_compressor
%define skip_python2 1
Name: python-django-compressor
@ -66,6 +65,10 @@ template tag.
%prep
%setup -q -n %{mod_name}-%{version}
sed -i '1{/env python/d}' compressor/tests/precompiler.py
# Fix broken tests related to jijna2
# gh#django-compressor/django-compressor#1139
# gh#django-compressor/django-compressor@bcdd21956a84
sed -i '/jinja2.ext.with_/d' compressor/tests/test_offline.py
%build
%python_build