Accepting request 762083 from devel:languages:python:pytest
- Update to 1.3.4: * upstream moved to github * support newer pytest releases - Drop merged patch pytest4.patch OBS-URL: https://build.opensuse.org/request/show/762083 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-timeout?expand=0&rev=8
This commit is contained in:
commit
1c8189b60c
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4a30ba76837a32c7b7cd5c84ee9933fde4b9022b0cd20ea7d4a577c2a1649fb1
|
|
||||||
size 11627
|
|
3
pytest-timeout-1.3.4.tar.gz
Normal file
3
pytest-timeout-1.3.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:80faa19cd245a42b87a51699d640c00d937c02b749052bfca6bae8bdbe12c48e
|
||||||
|
size 12255
|
@ -1,28 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User Bruno Oliveira <nicoddemus@gmail.com>
|
|
||||||
# Date 1542370558 7200
|
|
||||||
# Node ID 36998c891573d8ec1db1acd4f9438cb3cf2aee2e
|
|
||||||
# Parent 753c5f39d2a8d1477ea8653ca7c7bdbdca1efafc
|
|
||||||
Change tests to use pytest.param
|
|
||||||
|
|
||||||
diff --git a/test_pytest_timeout.py b/test_pytest_timeout.py
|
|
||||||
--- a/test_pytest_timeout.py
|
|
||||||
+++ b/test_pytest_timeout.py
|
|
||||||
@@ -93,7 +93,7 @@
|
|
||||||
# assert 'Timeout' in result.stdout.str() + result.stderr.str()
|
|
||||||
|
|
||||||
|
|
||||||
-@pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread'])
|
|
||||||
+@pytest.mark.parametrize('meth', [pytest.param('signal', marks=have_sigalrm), 'thread'])
|
|
||||||
@pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session'])
|
|
||||||
def test_fix_setup(meth, scope, testdir):
|
|
||||||
testdir.makepyfile("""
|
|
||||||
@@ -133,7 +133,7 @@
|
|
||||||
assert 'Timeout' not in result.stdout.str() + result.stderr.str()
|
|
||||||
|
|
||||||
|
|
||||||
-@pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread'])
|
|
||||||
+@pytest.mark.parametrize('meth', [pytest.param('signal', marks=have_sigalrm), 'thread'])
|
|
||||||
@pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session'])
|
|
||||||
def test_fix_finalizer(meth, scope, testdir):
|
|
||||||
testdir.makepyfile("""
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 9 08:24:34 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.3.4:
|
||||||
|
* upstream moved to github
|
||||||
|
* support newer pytest releases
|
||||||
|
- Drop merged patch pytest4.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 12 15:43:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Tue Feb 12 15:43:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-timeout
|
# spec file for package python-pytest-timeout
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -18,21 +18,17 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pytest-timeout
|
Name: python-pytest-timeout
|
||||||
Version: 1.3.3
|
Version: 1.3.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pytest plugin to abort hanging tests
|
Summary: Pytest plugin to abort hanging tests
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
URL: https://github.com/pytest-dev/pytest-timeout/
|
||||||
URL: http://bitbucket.org/pytest-dev/pytest-timeout/
|
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-timeout/pytest-timeout-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-timeout/pytest-timeout-%{version}.tar.gz
|
||||||
Patch0: pytest4.patch
|
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module pexpect}
|
BuildRequires: %{python_module pexpect}
|
||||||
BuildRequires: %{python_module pytest >= 3.6.0}
|
BuildRequires: %{python_module pytest >= 3.6.0}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pexpect
|
|
||||||
Requires: python-pytest >= 3.6.0
|
Requires: python-pytest >= 3.6.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -56,7 +52,6 @@ side-effects.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-timeout-%{version}
|
%setup -q -n pytest-timeout-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -67,11 +62,11 @@ side-effects.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest test_pytest_timeout.py
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README
|
%doc README.rst
|
||||||
%{python_sitelib}/pytest_timeout-%{version}-py*.egg-info
|
%{python_sitelib}/pytest_timeout-%{version}-py*.egg-info
|
||||||
%{python_sitelib}/pytest_timeout.py*
|
%{python_sitelib}/pytest_timeout.py*
|
||||||
%pycache_only %{python_sitelib}/__pycache__/pytest_timeout*.py*
|
%pycache_only %{python_sitelib}/__pycache__/pytest_timeout*.py*
|
||||||
|
Loading…
Reference in New Issue
Block a user