[packages/python3-pytest] - up to 8.3.5

baggins baggins at pld-linux.org
Fri Mar 14 22:37:02 CET 2025


commit a512de30364896ef4fa7e5fed99d3cc176dfc658
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Mar 14 23:35:07 2025 +0100

    - up to 8.3.5

 attrs-25.2.patch    | 31 +++++++++++++++++++++++++++++++
 python3-pytest.spec | 10 ++++++----
 2 files changed, 37 insertions(+), 4 deletions(-)
---
diff --git a/python3-pytest.spec b/python3-pytest.spec
index 8d90528..e31e246 100644
--- a/python3-pytest.spec
+++ b/python3-pytest.spec
@@ -5,18 +5,19 @@
 %bcond_without	python3 # CPython 3.x module
 %bcond_without	tests	# unit tests
 
-%define 	module	pytest
+%define		module	pytest
 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.4
-Release:	6
+Version:	8.3.5
+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:	542c4e802eeac1d196482e90a36533ed
+# Source0-md5:	f22d0f0e12aee3b97225a89504d657cb
 Patch0:		pytest-dev-bug-12624.patch
+Patch1:		attrs-25.2.patch
 URL:		https://pytest.org/
 BuildRequires:	python3-build
 BuildRequires:	python3-devel >= 1:3.7
@@ -96,6 +97,7 @@ Dokumentacja pakietu Pythona py.test.
 %prep
 %setup -q -n %{module}-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
diff --git a/attrs-25.2.patch b/attrs-25.2.patch
new file mode 100644
index 0000000..1f0ed10
--- /dev/null
+++ b/attrs-25.2.patch
@@ -0,0 +1,31 @@
+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
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list