Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-deadfixtures for
openSUSE:Factory checked in at 2026-09-16 17:40:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-deadfixtures (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-deadfixtures.new.383539
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-deadfixtures"
Wed Sep 16 17:40:54 2026 rev:3 rq:1378083 version:3.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-deadfixtures/python-pytest-deadfixtures.changes
2026-01-27 16:07:29.997984574 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-deadfixtures.new.383539/python-pytest-deadfixtures.changes
2026-09-16 17:41:16.464371763 +0200
@@ -1,0 +2,6 @@
+Tue Sep 15 08:27:44 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Add upstream patch fix-doctest-modules.patch
+ gh#jllorencetti/pytest-deadfixtures#60
+
+-------------------------------------------------------------------
New:
----
fix-doctest-modules.patch
----------(New B)----------
New:
- Add upstream patch fix-doctest-modules.patch
gh#jllorencetti/pytest-deadfixtures#60
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-deadfixtures.spec ++++++
--- /var/tmp/diff_new_pack.TrkgAR/_old 2026-09-16 17:41:17.467413674 +0200
+++ /var/tmp/diff_new_pack.TrkgAR/_new 2026-09-16 17:41:17.469413757 +0200
@@ -23,6 +23,8 @@
License: MIT
URL: https://github.com/jllorencetti/pytest-deadfixtures
Source:
https://github.com/jllorencetti/pytest-deadfixtures/archive/refs/tags/%{version}.tar.gz#/pytest_deadfixtures-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix-doctest-modules.patch
gh#jllorencetti/pytest-deadfixtures#60
+Patch0: fix-doctest-modules.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.TrkgAR/_old 2026-09-16 17:41:17.537416598 +0200
+++ /var/tmp/diff_new_pack.TrkgAR/_new 2026-09-16 17:41:17.541416766 +0200
@@ -1,6 +1,6 @@
-mtime: 1769418189
-commit: ec2c44a227e5568dd503d3a60127e3e4b1d86371224c8d352cf2bbb7d150089f
+mtime: 1789460891
+commit: 3e7845f5c97024a83c29dcd3f71e1902a01a5b0b791c35a58da74e70fb2a899b
url: https://src.opensuse.org/python-pytest/python-pytest-deadfixtures
-revision: ec2c44a227e5568dd503d3a60127e3e4b1d86371224c8d352cf2bbb7d150089f
+revision: 3e7845f5c97024a83c29dcd3f71e1902a01a5b0b791c35a58da74e70fb2a899b
projectscmsync: https://src.opensuse.org/python-pytest/_ObsPrj.git
++++++ fix-doctest-modules.patch ++++++
diff --git a/pytest_deadfixtures.py b/pytest_deadfixtures.py
index 12e402a..eee2345 100644
--- a/pytest_deadfixtures.py
+++ b/pytest_deadfixtures.py
@@ -242,6 +242,14 @@ def show_dead_fixtures(config, session):
available_fixtures = get_fixtures(session)
param_fixtures = get_parametrized_fixtures(session, available_fixtures)
+ curdir = py.path.local()
+
+ def _fixture_key(fixturedef):
+ return fixturedef.argname, getlocation(fixturedef.func, curdir)
+
+ used_keys = {_fixture_key(fixturedef) for fixturedef in used_fixtures}
+ param_keys = {_fixture_key(fixturedef) for fixturedef in param_fixtures}
+
# Separate ignored and unused fixtures
ignored_fixtures = [
fixture
@@ -252,8 +260,8 @@ def show_dead_fixtures(config, session):
unused_fixtures = [
fixture
for fixture in available_fixtures
- if fixture.fixturedef not in used_fixtures
- and fixture.fixturedef not in param_fixtures
+ if _fixture_key(fixture.fixturedef) not in used_keys
+ and _fixture_key(fixture.fixturedef) not in param_keys
and not is_ignored_fixture(fixture.fixturedef)
]