Accepting request 780870 from devel:languages:python:pytest

- Skip tests that fail with pytest 5.x series

OBS-URL: https://build.opensuse.org/request/show/780870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-twisted?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2020-03-03 09:18:06 +00:00 committed by Git OBS Bridge
parent 1811540c1f
commit 9474727ef6
5 changed files with 14 additions and 38 deletions

29
LICENSE
View File

@ -1,29 +0,0 @@
BSD 3-Clause License
Copyright (c) 2012, Ralf Schmitt
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb9af117c5c6063d9ef20ffdf2fa297caaf57de5a687e4d3607db7b0a6f74fea
size 15996

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 2 09:30:14 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Skip tests that fail with pytest 5.x series
-------------------------------------------------------------------
Thu Nov 14 14:52:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-twisted
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -24,9 +24,7 @@ Summary: Pytest Plugin for Twisted
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-twisted
Source: https://files.pythonhosted.org/packages/source/p/pytest-twisted/pytest-twisted-%{version}.zip
# https://github.com/pytest-dev/pytest-twisted/pull/72
Source99: https://raw.githubusercontent.com/pytest-dev/pytest-twisted/master/LICENSE
Source: https://github.com/pytest-dev/pytest-twisted/archive/v%{version}.tar.gz
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module greenlet}
@ -49,7 +47,6 @@ objects and pytest will wait for their completion with this plugin.
%prep
%setup -q -n pytest-twisted-%{version}
cp %{SOURCE99} .
%build
%python_build
@ -59,7 +56,10 @@ cp %{SOURCE99} .
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
export PYTHONDONTWRITEBYTECODE=1
# test_inline_callbacks_in_pytest_deprecation - breaks with the new pytest 5.x series
# test_blockon_in_pytest_deprecation - breaks with the new pytest 5.x series
%pytest -k 'not test_blockon_in_pytest_deprecation and not test_inline_callbacks_in_pytest_deprecation'
%files %{python_files}
%license LICENSE

3
v1.12.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab6388569c3fd4a601a94ad5f331c926775383667ba8db645de2fbaea7e9bd89
size 10257