[packages/python3-pytest] - updated to 8.4.2

qboosh qboosh at pld-linux.org
Tue Nov 18 22:17:32 CET 2025


commit 61c3b46366a2c88adc8fb02199c8e2ddc17618f7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Nov 18 22:17:31 2025 +0100

    - updated to 8.4.2

 attrs-25.2.patch           | 31 -------------------------------
 pytest-dev-bug-12624.patch |  4 ++--
 python3-pytest.spec        | 32 ++++++++++++++------------------
 3 files changed, 16 insertions(+), 51 deletions(-)
---
diff --git a/python3-pytest.spec b/python3-pytest.spec
index cc61d8d..6152aff 100644
--- a/python3-pytest.spec
+++ b/python3-pytest.spec
@@ -9,18 +9,17 @@
 Summary:	Simple and popular testing tool for Python
 Summary(pl.UTF-8):	Proste i popularne narzędzie testujące dla Pythona
 Name:		python3-%{module}
-Version:	8.3.5
+Version:	8.4.2
 Release:	1
 License:	MIT
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/pytest/
 Source0:	https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
-# Source0-md5:	f22d0f0e12aee3b97225a89504d657cb
+# Source0-md5:	a1b847e1f079dfc5d26a63bc02f47fb7
 Patch0:		pytest-dev-bug-12624.patch
-Patch1:		attrs-25.2.patch
 URL:		https://pytest.org/
 BuildRequires:	python3-build
-BuildRequires:	python3-devel >= 1:3.8
+BuildRequires:	python3-devel >= 1:3.9
 BuildRequires:	python3-installer
 BuildRequires:	python3-modules >= 1:3.8
 BuildRequires:	python3-py >= 1.8.2
@@ -37,8 +36,8 @@ BuildRequires:	python3-attrs >= 19.2.0
 BuildRequires:	python3-exceptiongroup >= 1.0.0
 %endif
 BuildRequires:	python3-hypothesis >= 3.56
-BuildRequires:	python3-iniconfig
-BuildRequires:	python3-packaging
+BuildRequires:	python3-iniconfig >= 1
+BuildRequires:	python3-packaging >= 20
 BuildRequires:	python3-pluggy >= 1.5.0
 BuildRequires:	python3-pluggy < 2.0
 BuildRequires:	python3-pygments >= 2.7.2
@@ -47,8 +46,6 @@ BuildRequires:	python3-xmlschema
 BuildConflicts:	python3-pytest-benchmark < 3.2.1
 # outdated
 BuildConflicts:	python3-pytest-catchlog
-# seems to break things
-BuildConflicts:	python3-pytest-xdist
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
@@ -56,7 +53,7 @@ BuildRequires:	sed >= 4.0
 %if %{with doc}
 BuildRequires:	inkscape
 BuildRequires:	python3-furo
-BuildRequires:	python3-packaging
+BuildRequires:	python3-packaging >= 20
 BuildRequires:	python3-pluggy >= 1.5.0
 BuildRequires:	python3-pygments_pytest >= 2.3.0
 BuildRequires:	python3-sphinx_issues
@@ -66,7 +63,7 @@ BuildRequires:	python3-sphinxcontrib-towncrier
 BuildRequires:	python3-sphinxcontrib-trio
 BuildRequires:	sphinx-pdg-3 >= 7
 %endif
-Requires:	python3-modules >= 1:3.8
+Requires:	python3-modules >= 1:3.9
 # no egg dependency (pytest comes with minimal replacement, we don't package it)
 Requires:	python3-py >= 1.11.0
 Obsoletes:	python3-pytest-cache < 1.1
@@ -95,7 +92,6 @@ Dokumentacja pakietu Pythona py.test.
 %prep
 %setup -q -n %{module}-%{version}
 %patch -P0 -p1
-%patch -P1 -p1
 
 %build
 export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
@@ -103,12 +99,12 @@ export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 %py3_build_pyproject
 
 %if %{with tests}
-# test_trial_pdb and most test_debugging tests require ptys
-# test_spawn_uses_tmphome and some terminal tests require ptys
-# test_code_highlight and test_color_yes has some terminal sequence mismatch
-# test_version_* have some exception string mismatch
+# test_stop_iteration_runtest_protocol, test_fail_setup, test_fail_teardown, test_fail_call: different exception message format
+# test_disable_plugin_autoload, test_version_verbose, test_version_less_verbose, test_random_report_log_xdist, test_runs_twice_xdist, test_xdist_normal, test_xdist_normal_count, test_xdist_verbose, test_xdist_times: interfere with our plugin disabling and/or too many plugins installed
+# test_header_trailer_info: some slow code warning?
+# test_pdb_unittest_postmortem: timeout?
 PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest -k 'not (test_code_highlight or test_color_yes or test_debugging or test_header_trailer_info or test_spawn_uses_tmphome or test_runtest_location_shown_before_test_starts or test_report_collect_after_half_a_second or test_trial_pdb or test_version_less_verbose or test_version_verbose)' testing
+%{__python3} -m pytest -k 'not (test_stop_iteration_runtest_protocol or test_fail_setup or test_fail_teardown or test_fail_call or test_disable_plugin_autoload or test_version_verbose or test_version_less_verbose or test_random_report_log_xdist or test_runs_twice_xdist or test_xdist_normal or test_xdist_normal_count or test_xdist_verbose or test_xdist_times or test_header_trailer_info or test_pdb_unittest_postmortem)'
 %endif
 
 %if %{with doc}
@@ -140,10 +136,10 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS CHANGELOG.rst LICENSE README.rst
-%attr(755,root,root) %{_bindir}/py.test
 %attr(755,root,root) %{_bindir}/py.test-3
-%attr(755,root,root) %{_bindir}/pytest
 %attr(755,root,root) %{_bindir}/pytest-3
+%{_bindir}/py.test
+%{_bindir}/pytest
 %{py3_sitescriptdir}/pytest
 %{py3_sitescriptdir}/_pytest
 %{py3_sitescriptdir}/pytest-%{version}.dist-info
diff --git a/attrs-25.2.patch b/attrs-25.2.patch
deleted file mode 100644
index 1f0ed10..0000000
--- a/attrs-25.2.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From b7854561993d00b8dddf3f43ce6b042b4111fa4c Mon Sep 17 00:00:00 2001
-From: jakkdl <h6+github at pm.me>
-Date: Wed, 12 Mar 2025 15:10:29 +0100
-Subject: [PATCH] fix attrs==25.2.0 compatibility
-
----
- changelog/13291.bugfix.rst    | 1 +
- src/_pytest/assertion/util.py | 2 +-
- 2 files changed, 2 insertions(+), 1 deletion(-)
- create mode 100644 changelog/13291.bugfix.rst
-
-diff --git a/changelog/13291.bugfix.rst b/changelog/13291.bugfix.rst
-new file mode 100644
-index 00000000000..03ce06b697a
---- /dev/null
-+++ b/changelog/13291.bugfix.rst
-@@ -0,0 +1 @@
-+Fixed ``repr`` of ``attrs`` objects in assertion failure messages when using ``attrs>=25.2``.
-diff --git a/src/_pytest/assertion/util.py b/src/_pytest/assertion/util.py
-index 30aee185d57..c545e6cd20c 100644
---- a/src/_pytest/assertion/util.py
-+++ b/src/_pytest/assertion/util.py
-@@ -169,7 +169,7 @@ def has_default_eq(
-         code_filename = obj.__eq__.__code__.co_filename
- 
-         if isattrs(obj):
--            return "attrs generated eq" in code_filename
-+            return "attrs generated " in code_filename
- 
-         return code_filename == "<string>"  # data class
-     return True
diff --git a/pytest-dev-bug-12624.patch b/pytest-dev-bug-12624.patch
index 9fe5835..a2f1fb5 100644
--- a/pytest-dev-bug-12624.patch
+++ b/pytest-dev-bug-12624.patch
@@ -21,14 +21,14 @@ diff --git a/AUTHORS b/AUTHORS
 index 5c046ff5988..c6331cd022c 100644
 --- a/AUTHORS
 +++ b/AUTHORS
-@@ -265,6 +265,7 @@ Mandeep Bhutani
+@@ -275,6 +275,7 @@ Mandeep Bhutani
  Manuel Krebber
  Marc Mueller
  Marc Schlaich
 +Marcel Telka
  Marcelo Duarte Trevisani
+ Marcin Augustynów
  Marcin Bachry
- Marc Bresson
 diff --git a/changelog/12624.improvement.rst b/changelog/12624.improvement.rst
 new file mode 100644
 index 00000000000..7ca60d428dd
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest.git/commitdiff/61c3b46366a2c88adc8fb02199c8e2ddc17618f7




More information about the pld-cvs-commit mailing list