Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-anyio for openSUSE:Factory 
checked in at 2023-11-06 21:13:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-anyio (Old)
 and      /work/SRC/openSUSE:Factory/.python-anyio.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-anyio"

Mon Nov  6 21:13:40 2023 rev:17 rq:1122669 version:3.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-anyio/python-anyio.changes        
2023-09-07 21:13:37.031184582 +0200
+++ /work/SRC/openSUSE:Factory/.python-anyio.new.17445/python-anyio.changes     
2023-11-06 21:13:44.494079149 +0100
@@ -1,0 +2,6 @@
+Thu Nov  2 10:42:51 UTC 2023 - Jiri Slaby <[email protected]>
+
+- add tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch (kernel
+  6.6 fix)
+
+-------------------------------------------------------------------

New:
----
  tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch

BETA DEBUG BEGIN:
  New:
- add tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch (kernel
  6.6 fix)
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-anyio.spec ++++++
--- /var/tmp/diff_new_pack.33DDaD/_old  2023-11-06 21:13:46.166140697 +0100
+++ /var/tmp/diff_new_pack.33DDaD/_new  2023-11-06 21:13:46.170140844 +0100
@@ -28,6 +28,8 @@
 Patch0:         support-trio-0.22.patch
 # PATCH-FIX-UPSTREAM Based on gh#agronholm/anyio#553
 Patch1:         fix-failing-tls-tests.patch
+# PATCH-FIX-UPSTREAM see gh#agronholm/anyio#626
+Patch2:         tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch
 BuildRequires:  %{python_module contextlib2 if %python-base < 3.7}
 BuildRequires:  %{python_module dataclasses if %python-base < 3.7}
 BuildRequires:  %{python_module idna >= 2.8}

++++++ tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch ++++++
From: Jiri Slaby <[email protected]>
Date: Thu, 2 Nov 2023 11:37:44 +0100
Subject: tests: test_fileio.py: don't follow symlinks in /dev
Patch-mainline: submitted https://github.com/agronholm/anyio/pull/626
References: fix for kernel 6.6

There might be a broken one like /dev/log and this causes the tests to
fail.

This is highly is unpredictable, because os.scandir() sometimes returns
a block device, sometimes the broken link is hit.

So pass follow_symlinks=False to entry.stat().
---
 tests/test_fileio.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_fileio.py b/tests/test_fileio.py
index 9e6b2a8325..c4801187db 100644
--- a/tests/test_fileio.py
+++ b/tests/test_fileio.py
@@ -218,7 +218,7 @@ class TestPath:
         assert not await Path("/btelkbee").is_block_device()
         with os.scandir("/dev") as iterator:
             for entry in iterator:
-                if stat.S_ISBLK(entry.stat().st_mode):
+                if stat.S_ISBLK(entry.stat(follow_symlinks=False).st_mode):
                     assert await Path(entry.path).is_block_device()
                     break
             else:
-- 
2.42.0

Reply via email to