forked from pool/python-pytest-aiohttp
Accepting request 1114839 from devel:languages:python:pytest
- update to 1.0.5: * Fix some compatibility with Pytest 7. - pytest72.patch dropped (upstream) OBS-URL: https://build.opensuse.org/request/show/1114839 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-aiohttp?expand=0&rev=6
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39ff3a0d15484c01d1436cbedad575c6eafbf0f57cdf76fb94994c97b5b8c5a4
|
||||
size 11868
|
||||
3
pytest-aiohttp-1.0.5.tar.gz
Normal file
3
pytest-aiohttp-1.0.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:880262bc5951e934463b15e3af8bb298f11f7d4d3ebac970aab425aff10a780a
|
||||
size 12209
|
||||
@@ -1,33 +0,0 @@
|
||||
From d7f142e8ee73fa50096e5e9ed00458ea7e874845 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
|
||||
Date: Wed, 30 Nov 2022 08:01:19 +0100
|
||||
Subject: [PATCH] Use pytest.hookimpl in pytest_configure
|
||||
|
||||
pytest.PytestDeprecationWarning: The hookimpl pytest_configure uses
|
||||
old-style configuration options (marks or attributes).
|
||||
|
||||
Please use the pytest.hookimpl(tryfirst=True) decorator instead to
|
||||
configure the hooks.
|
||||
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
|
||||
|
||||
Fix https://github.com/aio-libs/pytest-aiohttp/issues/47
|
||||
---
|
||||
pytest_aiohttp/plugin.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pytest_aiohttp/plugin.py b/pytest_aiohttp/plugin.py
|
||||
index d4854d8..68c8ad8 100644
|
||||
--- a/pytest_aiohttp/plugin.py
|
||||
+++ b/pytest_aiohttp/plugin.py
|
||||
@@ -18,7 +18,7 @@ LEGACY_MODE = DeprecationWarning(
|
||||
)
|
||||
|
||||
|
||||
-@pytest.mark.tryfirst
|
||||
+@pytest.hookimpl(tryfirst=True)
|
||||
def pytest_configure(config) -> None:
|
||||
val = config.getoption("asyncio_mode")
|
||||
if val is None:
|
||||
--
|
||||
2.38.1
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 14:49:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.5:
|
||||
* Fix some compatibility with Pytest 7.
|
||||
- pytest72.patch dropped (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 4 11:34:16 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-aiohttp
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,15 +19,13 @@
|
||||
%define pyname pytest-aiohttp
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pytest-aiohttp
|
||||
Version: 1.0.4
|
||||
Version: 1.0.5
|
||||
Release: 0
|
||||
Summary: Python pytest plugin for aiohttp support
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/aio-libs/pytest-aiohttp
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-aiohttp/pytest-aiohttp-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM pytest72.patch gh#aio-libs/pytest-aiohttp#49
|
||||
Patch0: pytest72.patch
|
||||
BuildRequires: %{python_module aiohttp >= 3.8.1}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
|
||||
Reference in New Issue
Block a user