forked from pool/python-pytest-asyncio
Accepting request 904059 from home:alarrosa:branches:devel:languages:python:pytest
This should fix Staging:F . Or said in another way, it should fix python-fakeredis failing with: [ 59s] _______________________________ test_ping[fake] ________________________________ [ 59s] [ 59s] r = <async_generator._impl.AsyncGenerator object at 0x7f60c4ede6d8> [ 59s] [ 59s] async def test_ping(r): [ 59s] > pong = await r.ping() [ 59s] E AttributeError: 'AsyncGenerator' object has no attribute 'ping' [ 59s] [ 59s] test/test_aioredis.py:45: AttributeError ... - Add patch to revert a change in 0.15.1 that removed async_generator support in upstream together with python 3.5 support. This revert is needed by python-fakeredis 1.5.2 * 0001-removed-support-for-python-3.5.patch OBS-URL: https://build.opensuse.org/request/show/904059 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=15
This commit is contained in:
@@ -25,6 +25,7 @@ Summary: Pytest support for asyncio
|
||||
License: Apache-2.0
|
||||
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
|
||||
Patch0: 0001-removed-support-for-python-3.5.patch
|
||||
BuildRequires: %{python_module async_generator >= 1.3}
|
||||
BuildRequires: %{python_module base >= 3.6}
|
||||
BuildRequires: %{python_module hypothesis >= 5.7.1}
|
||||
@@ -46,6 +47,7 @@ provides useful fixtures and markers to make testing easier.
|
||||
%prep
|
||||
%setup -q -n pytest-asyncio-%{version}
|
||||
sed -ie '1i# -*- coding: utf-8 -*-' setup.py
|
||||
%patch0 -p1 -R
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user