Accepting request 782858 from devel:languages:python:pytest

py38 fix

OBS-URL: https://build.opensuse.org/request/show/782858
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2020-03-09 10:42:37 +00:00 committed by Git OBS Bridge
commit 5df94c6228
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 9 09:37:18 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix test run on python 3.8+
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 13 13:14:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Wed Feb 13 13:14:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-asyncio # spec file for package python-pytest-asyncio
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -23,7 +23,6 @@ Version: 0.10.0
Release: 0 Release: 0
Summary: Pytest support for asyncio Summary: Pytest support for asyncio
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-asyncio URL: https://github.com/pytest-dev/pytest-asyncio
Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#./pytest-asyncio-%{version}.tar.gz Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#./pytest-asyncio-%{version}.tar.gz
BuildRequires: %{python_module async_generator >= 1.3} BuildRequires: %{python_module async_generator >= 1.3}
@ -55,7 +54,9 @@ sed -ie '1i# -*- coding: utf-8 -*-' setup.py
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec -m pytest # remove pytest config to not error out on deprecations
rm setup.cfg
%pytest
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst