Accepting request 1072990 from devel:languages:python:pytest

- Add ptch ignore-deprecationwarning.patch:
  * Ignore DeprecationWarning, some of our dependancies use pkg_resources.

OBS-URL: https://build.opensuse.org/request/show/1072990
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2023-03-31 19:14:03 +00:00 committed by Git OBS Bridge
commit 687b8efdec
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
Index: pytest-benchmark-4.0.0/pytest.ini
===================================================================
--- pytest-benchmark-4.0.0.orig/pytest.ini
+++ pytest-benchmark-4.0.0/pytest.ini
@@ -32,6 +32,7 @@ testpaths =
# Idea from: https://til.simonwillison.net/pytest/treat-warnings-as-errors
filterwarnings =
error
+ ignore::DeprecationWarning
# You can add exclusions, some examples:
# ignore:'pytest_benchmark' defines default_app_config:PendingDeprecationWarning::
# ignore:The {{% if:::

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 20 05:13:36 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Add ptch ignore-deprecationwarning.patch:
* Ignore DeprecationWarning, some of our dependancies use pkg_resources.
-------------------------------------------------------------------
Tue Jan 17 13:03:29 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -27,6 +27,9 @@ Source: https://files.pythonhosted.org/packages/source/p/pytest-benchmar
Patch0: fix-test-fast.patch
# PATCH-FIX-OPENSUSE py311.patch gh#ionelmc/pytest-benchmark#232
Patch1: py311.patch
# PATCH-FIX-OPENSUSE Ignore DeprecationWarning, some of our dependancies use
# pkg_resources.
Patch2: ignore-deprecationwarning.patch
BuildRequires: %{python_module aspectlib}
BuildRequires: %{python_module elasticsearch}
BuildRequires: %{python_module freezegun}