1
0
forked from pool/python-Django

- Clean up PYTHONPATH to make test_extra_tests_build_suite pass.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-Django?expand=0&rev=96
This commit is contained in:
Matej Cepl 2021-12-20 10:37:24 +00:00 committed by Git OBS Bridge
parent acc0eb98b6
commit f5dc5666e4
3 changed files with 7 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 20 10:37:10 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Clean up PYTHONPATH to make test_extra_tests_build_suite pass.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 7 14:09:24 UTC 2021 - Alberto Planas Dominguez <aplanas@suse.com> Tue Dec 7 14:09:24 UTC 2021 - Alberto Planas Dominguez <aplanas@suse.com>

View File

@ -33,7 +33,6 @@ Source: https://www.djangoproject.com/m/releases/4.0/Django-%{version}.t
Source1: https://media.djangoproject.com/pgp/Django-%{version}.checksum.txt#/Django-%{version}.tar.gz.asc Source1: https://media.djangoproject.com/pgp/Django-%{version}.checksum.txt#/Django-%{version}.tar.gz.asc
Source2: %{name}.keyring Source2: %{name}.keyring
Source99: python-Django-rpmlintrc Source99: python-Django-rpmlintrc
Patch0: skip_discoverrunnerextratestsdeprecationtests.diff
BuildRequires: %{python_module Jinja2 >= 2.9.2} BuildRequires: %{python_module Jinja2 >= 2.9.2}
BuildRequires: %{python_module Pillow >= 6.2.0} BuildRequires: %{python_module Pillow >= 6.2.0}
BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module PyYAML}
@ -125,9 +124,9 @@ export LANG=en_US.UTF8
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
%if %{with selenium} %if %{with selenium}
export PATH=%{_libdir}/chromium:$PATH export PATH=%{_libdir}/chromium:$PATH
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:. xvfb-run $python tests/runtests.py -v 2 --selenium=chrome %python_expand PYTHONPATH=.:%{buildroot}%{$python_sitelib} xvfb-run $python tests/runtests.py -v 2 --selenium=chrome
%else %else
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:. $python tests/runtests.py -v 2 %python_expand PYTHONPATH=.:%{buildroot}%{$python_sitelib} $python tests/runtests.py -v 2
%endif %endif
%post %post

View File

@ -1,12 +0,0 @@
Index: Django-4.0/tests/test_runner/tests.py
===================================================================
--- Django-4.0.orig/tests/test_runner/tests.py
+++ Django-4.0/tests/test_runner/tests.py
@@ -841,6 +841,7 @@ class DiscoverRunnerExtraTestsDeprecatio
def get_runner(self):
return NoOpTestRunner(verbosity=0, interactive=False)
+ @unittest.skip("possible unittest issue")
def test_extra_tests_build_suite(self):
runner = self.get_runner()
with self.assertWarnsMessage(RemovedInDjango50Warning, self.msg):