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:
commit
56fe7562e7
13
kwsyntax.patch
Normal file
13
kwsyntax.patch
Normal 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
|
@ -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>
|
Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
@ -32,10 +32,11 @@ Summary: Python socket mock framework
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/mindflayer/python-mocket
|
URL: https://github.com/mindflayer/python-mocket
|
||||||
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
|
||||||
|
Patch0: kwsyntax.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-decorator < 5
|
Requires: python-decorator
|
||||||
Requires: python-http-parser >= 0.9.0
|
Requires: python-http-parser >= 0.9.0
|
||||||
Requires: python-python-magic
|
Requires: python-python-magic
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
@ -80,6 +81,7 @@ included, with gevent/asyncio/SSL support.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mocket-%{version}
|
%setup -q -n mocket-%{version}
|
||||||
|
%autopatch -p1
|
||||||
sed -i '/cov/ d' setup.cfg
|
sed -i '/cov/ d' setup.cfg
|
||||||
sed -i '/pipenv/ d' setup.py
|
sed -i '/pipenv/ d' setup.py
|
||||||
sed -i 's/==.*$//' requirements.txt
|
sed -i 's/==.*$//' requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user