forked from pool/python-pytest-instafail
- Add patch fixing testing with new pytest:
* pytest5.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-instafail?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
0bb0439e45
commit
5c0d5acc34
13
pytest5.patch
Normal file
13
pytest5.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: pytest-instafail-0.4.1.post0/test_instafail.py
|
||||||
|
===================================================================
|
||||||
|
--- pytest-instafail-0.4.1.post0.orig/test_instafail.py
|
||||||
|
+++ pytest-instafail-0.4.1.post0/test_instafail.py
|
||||||
|
@@ -241,7 +241,7 @@ class TestInstafailingTerminalReporter(o
|
||||||
|
])
|
||||||
|
if not option.quiet:
|
||||||
|
result.stdout.fnmatch_lines([
|
||||||
|
- "collected 0 items / 1 errors",
|
||||||
|
+ "collected 0 items / 1 error*",
|
||||||
|
])
|
||||||
|
|
||||||
|
def test_print_stacktrace_once_with_pdb(self, testdir, request, option):
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 5 08:24:53 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add patch fixing testing with new pytest:
|
||||||
|
* pytest5.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 18 07:55:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Mon Nov 18 07:55:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-instafail
|
# spec file for package python-pytest-instafail
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC.
|
# 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
|
||||||
@@ -22,9 +22,9 @@ Version: 0.4.1.post0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pytest Plugin to Show Failures Instantly
|
Summary: Pytest Plugin to Show Failures Instantly
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/jpvanhal/pytest-instafail
|
URL: https://github.com/jpvanhal/pytest-instafail
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-instafail/pytest-instafail-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-instafail/pytest-instafail-%{version}.tar.gz
|
||||||
|
Patch0: pytest5.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -42,6 +42,7 @@ until the end of test session.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-instafail-%{version}
|
%setup -q -n pytest-instafail-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -52,7 +53,7 @@ until the end of test session.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
|
|||||||
Reference in New Issue
Block a user