public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pytest] rawhide: Update to 9.1.1
@ 2026-07-30 11:58 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-30 11:58 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/pytest
            Branch : rawhide
            Commit : 23a4472571f1f7c391721a9510f9cf7ac721b990
            Author : Tomáš Hrnčiar <thrnciar@redhat.com>
            Date   : 2026-07-29T12:09:21+02:00
            Stats  : +2/-39 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/pytest/c/23a4472571f1f7c391721a9510f9cf7ac721b990?branch=rawhide

            Log:
            Update to 9.1.1

- Fixes:rhbz#2488710

---
diff --git a/7202c3af8.patch b/7202c3af8.patch
deleted file mode 100644
index 4430ebc..0000000
--- a/7202c3af8.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 7202c3af81c208521524389fcf374fd73211b51b Mon Sep 17 00:00:00 2001
-From: Ran Benita <ran@unusedvar.com>
-Date: Wed, 27 May 2026 11:03:05 +0300
-Subject: [PATCH] testing: fix `test_dont_write_bytecode` for Python 3.15
-
-Python 3.15b1 no longer sets `module.__cached__`. But
-`module.__spec__.cached` is still set, is recommended over
-`module.__cached__` by Python documentation, and it works for all
-previous versions as well, so switch to that.
-
-Ref:
-https://docs.python.org/3.15/reference/datamodel.html#module.__file__
----
- testing/test_assertrewrite.py | 7 ++++---
- 1 file changed, 4 insertions(+), 3 deletions(-)
-
-diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py
-index 2668001af65..e11863547ba 100644
---- a/testing/test_assertrewrite.py
-+++ b/testing/test_assertrewrite.py
-@@ -1082,9 +1082,10 @@ def test_dont_write_bytecode(self, pytester: Pytester, monkeypatch) -> None:
-             """
-             import os
-             def test_no_bytecode():
--                assert "__pycache__" in __cached__
--                assert not os.path.exists(__cached__)
--                assert not os.path.exists(os.path.dirname(__cached__))"""
-+                assert "__pycache__" in __spec__.cached
-+                assert not os.path.exists(__spec__.cached)
-+                assert not os.path.exists(os.path.dirname(__spec__.cached))
-+            """
-         )
-         monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", "1")
-         assert pytester.runpytest_subprocess().ret == 0

diff --git a/pytest.spec b/pytest.spec
index a7d86ae..858bb72 100644
--- a/pytest.spec
+++ b/pytest.spec
@@ -1,5 +1,5 @@
 Name:           pytest
-Version:        9.0.3
+Version:        9.1.1
 Release:        %autorelease
 Summary:        Simple powerful testing with Python
 # SPDX
@@ -7,9 +7,6 @@ License:        MIT
 URL:            https://pytest.org
 Source:         %{pypi_source pytest %{version}}
 
-# Fix test_dont_write_bytecode for Python 3.15 (__cached__ no longer set)
-Patch:          https://github.com/pytest-dev/pytest/commit/7202c3af8.patch
-
 # Remove -s from Python shebang,
 # ensure that packages installed with pip to user locations are testable
 # https://bugzilla.redhat.com/2152171

diff --git a/sources b/sources
index ccc01e1..e4a7c7a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pytest-9.0.3.tar.gz) = 228908e1f9718c418b5e118e7c49cb4b998b907982e277f29cdd13199383425cce9c7cee3275440bb1d0b0ae68b4a88443ef3400f506e9b787fc4d816bc47003
+SHA512 (pytest-9.1.1.tar.gz) = 10065997d09e8614ccf064b673e9dde8a4048eb0d701dd1e1e45b9b3751788d1060093aded2b180779852d981b3521b6d08e27fc86fb087b31933e55f57e8292

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-30 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 11:58 [rpms/pytest] rawhide: Update to 9.1.1 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox