Accepting request 828921 from home:mcalabkova:branches:devel:languages:python:django

- Fix build with ignore-warnings.patch

OBS-URL: https://build.opensuse.org/request/show/828921
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=24
This commit is contained in:
Tomáš Chvátal 2020-08-24 16:32:00 +00:00 committed by Git OBS Bridge
parent e4f0dce9d2
commit e019a9a285
3 changed files with 21 additions and 0 deletions

13
ignore-warnings.patch Normal file
View File

@ -0,0 +1,13 @@
Index: pytest-django-3.9.0/tests/test_fixtures.py
===================================================================
--- pytest-django-3.9.0.orig/tests/test_fixtures.py
+++ pytest-django-3.9.0/tests/test_fixtures.py
@@ -597,7 +597,7 @@ class Migration(migrations.Migration):
)
result = django_testdir.runpytest_subprocess("-s")
- result.stdout.fnmatch_lines(["* 1 passed in*"])
+ result.stdout.fnmatch_lines(["* 1 passed*"])
assert result.ret == 0

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 24 11:50:24 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Fix build with ignore-warnings.patch
-------------------------------------------------------------------
Fri Apr 3 10:20:28 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -25,6 +25,8 @@ Summary: A Django plugin for py.test
License: BSD-3-Clause
URL: https://github.com/pytest-dev/pytest-django
Source: https://files.pythonhosted.org/packages/source/p/pytest-django/pytest-django-%{version}.tar.gz
# fix tests
Patch0: ignore-warnings.patch
BuildRequires: %{python_module Django}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm >= 1.11.1}
@ -61,6 +63,7 @@ that are already present in pytest:
%prep
%setup -q -n pytest-django-%{version}
%patch0 -p1
%build
%python_build