From e019a9a28557f61540d5f81300d6e4e2a15587960b9c18fe7e011be68cfccf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 24 Aug 2020 16:32:00 +0000 Subject: [PATCH] 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 --- ignore-warnings.patch | 13 +++++++++++++ python-pytest-django.changes | 5 +++++ python-pytest-django.spec | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 ignore-warnings.patch diff --git a/ignore-warnings.patch b/ignore-warnings.patch new file mode 100644 index 0000000..e04466f --- /dev/null +++ b/ignore-warnings.patch @@ -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 + + diff --git a/python-pytest-django.changes b/python-pytest-django.changes index 1d98788..48a771a 100644 --- a/python-pytest-django.changes +++ b/python-pytest-django.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 24 11:50:24 UTC 2020 - Marketa Calabkova + +- Fix build with ignore-warnings.patch + ------------------------------------------------------------------- Fri Apr 3 10:20:28 UTC 2020 - Tomáš Chvátal diff --git a/python-pytest-django.spec b/python-pytest-django.spec index c3a65dd..74bf4a7 100644 --- a/python-pytest-django.spec +++ b/python-pytest-django.spec @@ -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