1
0
forked from pool/python-mocket

Accepting request 910434 from devel:languages:python

- Add kwsyntax.patch to fix test failure with new decorator.

OBS-URL: https://build.opensuse.org/request/show/910434
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=14
This commit is contained in:
Richard Brown 2021-08-11 09:47:00 +00:00 committed by Git OBS Bridge
commit 56fe7562e7
3 changed files with 21 additions and 1 deletions

13
kwsyntax.patch Normal file
View File

@ -0,0 +1,13 @@
Index: mocket-3.9.42/mocket/mocket.py
===================================================================
--- mocket-3.9.42.orig/mocket/mocket.py
+++ mocket-3.9.42/mocket/mocket.py
@@ -628,7 +628,7 @@ class Mocketizer(object):
t(*args, **kw)
return wrapper
- return decorator.decorator(wrapper, test)
+ return decorator.decorator(wrapper, test, kwsyntax=True)
mocketize = Mocketizer.wrap

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 5 15:22:22 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Add kwsyntax.patch to fix test failure with new decorator.
-------------------------------------------------------------------
Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@ -32,10 +32,11 @@ Summary: Python socket mock framework
License: BSD-3-Clause
URL: https://github.com/mindflayer/python-mocket
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
Patch0: kwsyntax.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-decorator < 5
Requires: python-decorator
Requires: python-http-parser >= 0.9.0
Requires: python-python-magic
Requires: python-six
@ -80,6 +81,7 @@ included, with gevent/asyncio/SSL support.
%prep
%setup -q -n mocket-%{version}
%autopatch -p1
sed -i '/cov/ d' setup.cfg
sed -i '/pipenv/ d' setup.py
sed -i 's/==.*$//' requirements.txt