- Add patch to play with new pytest rather than restricting:
* pytest4.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-execnet?expand=0&rev=8
This commit is contained in:
parent
321dbc71f7
commit
a2537eb2a5
24
pytest4.patch
Normal file
24
pytest4.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: execnet-1.6.0/testing/conftest.py
|
||||
===================================================================
|
||||
--- execnet-1.6.0.orig/testing/conftest.py
|
||||
+++ execnet-1.6.0/testing/conftest.py
|
||||
@@ -83,8 +83,8 @@ def getsocketspec(config=None):
|
||||
|
||||
|
||||
def pytest_generate_tests(metafunc):
|
||||
- if 'gw' in metafunc.funcargnames:
|
||||
- assert 'anypython' not in metafunc.funcargnames, "need combine?"
|
||||
+ if 'gw' in metafunc.fixturenames:
|
||||
+ assert 'anypython' not in metafunc.fixturenames, "need combine?"
|
||||
if hasattr(metafunc.function, 'gwtypes'):
|
||||
gwtypes = metafunc.function.gwtypes
|
||||
elif hasattr(metafunc.cls, 'gwtype'):
|
||||
@@ -92,7 +92,7 @@ def pytest_generate_tests(metafunc):
|
||||
else:
|
||||
gwtypes = ['popen', 'socket', 'ssh', 'proxy']
|
||||
metafunc.parametrize("gw", gwtypes, indirect=True)
|
||||
- elif 'anypython' in metafunc.funcargnames:
|
||||
+ elif 'anypython' in metafunc.fixturenames:
|
||||
metafunc.parametrize(
|
||||
"anypython", indirect=True, argvalues=(
|
||||
'sys.executable', 'python2.7', 'pypy', 'jython',
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 19 09:14:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Add patch to play with new pytest rather than restricting:
|
||||
* pytest4.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 18 08:47:00 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
|
@ -25,9 +25,9 @@ License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://github.com/pytest-dev/execnet
|
||||
Source0: https://files.pythonhosted.org/packages/source/e/execnet/execnet-%{version}.tar.gz
|
||||
Patch0: pytest4.patch
|
||||
BuildRequires: %{python_module apipkg}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module pytest4}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@ -50,6 +50,7 @@ API targetting the following uses:
|
||||
|
||||
%prep
|
||||
%setup -q -n execnet-%{version}
|
||||
%patch0 -p1
|
||||
sed -i "1d" execnet/script/shell.py execnet/script/socketserver.py
|
||||
|
||||
%build
|
||||
@ -59,7 +60,7 @@ sed -i "1d" execnet/script/shell.py execnet/script/socketserver.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest -r s -k"not test_gateway" testing
|
||||
|
Loading…
Reference in New Issue
Block a user