Accepting request 1314025 from devel:languages:python:pytest

- Update to 1.5.0:
  * Adding the usage of the doctest_encoding ini option when
    overwriting files with the doctest-plus-generate-diff option.
    [#284]
- Drop upstream patch add-missing-xfail-version.patch

OBS-URL: https://build.opensuse.org/request/show/1314025
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-doctestplus?expand=0&rev=21
This commit is contained in:
2025-10-28 13:49:08 +00:00
committed by Git OBS Bridge
5 changed files with 13 additions and 28 deletions

View File

@@ -1,22 +0,0 @@
From 23eb3de76bc4581dfc8261b07a8a55cc03fea45b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= <bsipocz@gmail.com>
Date: Mon, 16 Dec 2024 19:05:07 -0800
Subject: [PATCH] TST: one more version to xfail
---
tests/test_doctestplus.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pytest_doctestplus-1.4.0/tests/test_doctestplus.py
===================================================================
--- pytest_doctestplus-1.4.0.orig/tests/test_doctestplus.py
+++ pytest_doctestplus-1.4.0/tests/test_doctestplus.py
@@ -1210,7 +1210,7 @@ def test_main(testdir):
@pytest.mark.xfail(
- python_version() in ('3.11.9', '3.11.10', '3.11.11', '3.12.3'),
+ python_version() in ('3.11.9', '3.11.10', '3.11.11', '3.11.13', '3.12.3'),
reason='broken by https://github.com/python/cpython/pull/115440')
def test_ufunc(testdir):
pytest.importorskip('numpy')

View File

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

View File

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

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Oct 28 09:11:39 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 1.5.0:
* Adding the usage of the doctest_encoding ini option when
overwriting files with the doctest-plus-generate-diff option.
[#284]
- Drop upstream patch add-missing-xfail-version.patch
-------------------------------------------------------------------
Wed Sep 10 12:39:28 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -27,14 +27,12 @@
%{?sle15_python_module_pythons}
Name: python-pytest-doctestplus%{psuffix}
Version: 1.4.0
Version: 1.5.0
Release: 0
Summary: Pytest plugin with advanced doctest features
License: BSD-3-Clause
URL: https://github.com/scientific-python/pytest-doctestplus
Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest_doctestplus-%{version}.tar.gz
# PATCH-FIX-UPSTREAM add-missing-xfail-version.patch (gh#23eb3de)
Patch0: add-missing-xfail-version.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}