1
0

- Add ptch ignore-deprecationwarning.patch:

* Ignore DeprecationWarning, some of our dependancies use pkg_resources.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=26
This commit is contained in:
Steve Kowalik 2023-03-20 05:14:18 +00:00 committed by Git OBS Bridge
parent 0f2466043a
commit c6a254c99f
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> 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 Patch0: fix-test-fast.patch
# PATCH-FIX-OPENSUSE py311.patch gh#ionelmc/pytest-benchmark#232 # PATCH-FIX-OPENSUSE py311.patch gh#ionelmc/pytest-benchmark#232
Patch1: py311.patch 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 aspectlib}
BuildRequires: %{python_module elasticsearch} BuildRequires: %{python_module elasticsearch}
BuildRequires: %{python_module freezegun} BuildRequires: %{python_module freezegun}