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