Accepting request 854170 from home:bnavigator:branches:devel:languages:python:pytest

- Fix test failure gh#astropy/pytest-filter-subpackage#3
  fix-doctestplus-count.patch

OBS-URL: https://build.opensuse.org/request/show/854170
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-filter-subpackage?expand=0&rev=3
This commit is contained in:
2020-12-09 11:53:24 +00:00
committed by Git OBS Bridge
parent f847a398f0
commit c1cdfe06eb
3 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
Index: pytest-filter-subpackage-0.1.1/tests/test_filter_subpackage.py
===================================================================
--- pytest-filter-subpackage-0.1.1.orig/tests/test_filter_subpackage.py
+++ pytest-filter-subpackage-0.1.1/tests/test_filter_subpackage.py
@@ -14,7 +14,7 @@ def test_with_rst(testdir, testpackage):
doctest_plus = enabled
""")
reprec = testdir.inline_run('--doctest-rst')
- reprec.assertoutcome(passed=8, failed=3)
+ reprec.assertoutcome(passed=7, failed=3)
def test_flag_single_subpackage(testdir, testpackage):

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 9 00:01:05 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Fix test failure gh#astropy/pytest-filter-subpackage#3
fix-doctestplus-count.patch
-------------------------------------------------------------------
Mon Mar 16 08:37:56 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -25,9 +25,13 @@ Summary: Pytest plugin for filtering based on sub-packages
License: BSD-3-Clause
URL: https://github.com/astropy/pytest-filter-subpackage
Source: https://files.pythonhosted.org/packages/source/p/pytest-filter-subpackage/pytest-filter-subpackage-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- fix gh#astropy/pytest-filter-subpackage#3
Patch0: fix-doctestplus-count.patch
BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module pytest-doctestplus}
# Patch0 is for the change from doctestplus 0.5 to 0.6
BuildRequires: %{python_module pytest-doctestplus >= 0.6}
BuildRequires: %{python_module setuptools >= 30.3}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 3.0
@@ -39,7 +43,7 @@ This package contains a simple plugin for the `pytest`_ framework that provides
shortcut to testing all code and documentation for a given sub-package.
%prep
%setup -q -n pytest-filter-subpackage-%{version}
%autosetup -p1 -n pytest-filter-subpackage-%{version}
%build
%python_build
@@ -54,6 +58,7 @@ shortcut to testing all code and documentation for a given sub-package.
%files %{python_files}
%doc README.rst CHANGES.rst
%license LICENSE.rst
%{python_sitelib}/*
%{python_sitelib}/pytest_filter_subpackage
%{python_sitelib}/pytest_filter_subpackage-%{version}*-info
%changelog