diff -pruN 1.11.0-4/debian/changelog 1.11.0-5/debian/changelog
--- 1.11.0-4/debian/changelog	2025-01-29 15:42:17.000000000 +0000
+++ 1.11.0-5/debian/changelog	2025-08-23 17:06:59.000000000 +0000
@@ -1,3 +1,9 @@
+python-py (1.11.0-5) unstable; urgency=medium
+
+  * Patch tests for Pytest 8.4 compatibility
+
+ -- Alexandre Detiste <tchet@debian.org>  Sat, 23 Aug 2025 19:06:59 +0200
+
 python-py (1.11.0-4) unstable; urgency=medium
 
   * Team upload.
diff -pruN 1.11.0-4/debian/control 1.11.0-5/debian/control
--- 1.11.0-4/debian/control	2025-01-26 18:13:56.000000000 +0000
+++ 1.11.0-5/debian/control	2025-08-23 17:05:34.000000000 +0000
@@ -11,12 +11,11 @@ Build-Depends:
  python3-setuptools-scm,
  python3-pytest <!nocheck>,
  subversion <!nocheck>,
-Standards-Version: 4.6.2
+Standards-Version: 4.7.2
 Homepage: https://github.com/pytest-dev/py
 Vcs-Git: https://salsa.debian.org/python-team/packages/python-py.git
 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-py
 Testsuite: autopkgtest-pkg-python
-Rules-Requires-Root: no
 
 Package: python3-py
 Architecture: all
diff -pruN 1.11.0-4/debian/patches/fix_pytest8.4.patch 1.11.0-5/debian/patches/fix_pytest8.4.patch
--- 1.11.0-4/debian/patches/fix_pytest8.4.patch	1970-01-01 00:00:00.000000000 +0000
+++ 1.11.0-5/debian/patches/fix_pytest8.4.patch	2025-08-23 17:06:29.000000000 +0000
@@ -0,0 +1,11 @@
+--- a/testing/code/test_source.py
++++ b/testing/code/test_source.py
+@@ -295,7 +295,7 @@
+ 
+         for comp in py.code.compile, py.code.Source.compile:
+             for name in '', None, 'my':
+-                yield check, comp, name
++                check(comp, name)
+ 
+     def test_offsetless_synerr(self):
+         py.test.raises(SyntaxError, py.code.compile, "lambda a,a: 0", mode='eval')
diff -pruN 1.11.0-4/debian/patches/series 1.11.0-5/debian/patches/series
--- 1.11.0-4/debian/patches/series	2025-01-26 18:12:45.000000000 +0000
+++ 1.11.0-5/debian/patches/series	2025-08-23 17:05:54.000000000 +0000
@@ -1,3 +1,4 @@
 fix-pytest4.patch
 python3.12.patch
 remove_pkg_resources.patch
+fix_pytest8.4.patch
