Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-fs for openSUSE:Factory 
checked in at 2026-09-10 11:49:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fs (Old)
 and      /work/SRC/openSUSE:Factory/.python-fs.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-fs"

Thu Sep 10 11:49:26 2026 rev:20 rq:1376828 version:2.4.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fs/python-fs.changes      2025-09-17 
16:37:37.826127862 +0200
+++ /work/SRC/openSUSE:Factory/.python-fs.new.1265/python-fs.changes    
2026-09-10 11:52:06.581398327 +0200
@@ -1,0 +2,6 @@
+Thu Sep  3 05:16:56 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-315.patch:
+  * Deal with doctest and time.strptime changes with Python 3.15.
+
+-------------------------------------------------------------------

New:
----
  support-python-315.patch

----------(New B)----------
  New:
- Add patch support-python-315.patch:
  * Deal with doctest and time.strptime changes with Python 3.15.
----------(New E)----------

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

Other differences:
------------------
++++++ python-fs.spec ++++++
--- /var/tmp/diff_new_pack.ssKDnE/_old  2026-09-10 11:52:07.356430833 +0200
+++ /var/tmp/diff_new_pack.ssKDnE/_new  2026-09-10 11:52:07.358430916 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-fs
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
 # Copyright (c) 2016 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -29,6 +29,8 @@
 Patch0:         support-python-312.patch
 # PATCH-FIX-UPSTREAM gh#PyFilesystem/pyfilesystem2#595
 Patch1:         support-pyftpdlib-2.0.patch
+# PATCH-FIX-OPENSUSE Support Python 3.15 changes
+Patch2:         support-python-315.patch
 BuildRequires:  %{python_module appdirs >= 1.4.3}
 BuildRequires:  %{python_module parameterized}
 BuildRequires:  %{python_module pip}

++++++ support-python-315.patch ++++++
Index: fs-2.4.16/tests/test_doctest.py
===================================================================
--- fs-2.4.16.orig/tests/test_doctest.py
+++ fs-2.4.16/tests/test_doctest.py
@@ -181,6 +181,12 @@ class TestDoctest(unittest.TestCase):
 
 def make_wrapper(x):
     def _test_wrapper(self):
+        # In 3.15, runTest expects self._test_result to exist for subtest 
tracking
+        if not hasattr(x, '_test_result'):
+            class DummyTestResult:
+                def addSubTest(self, test, subtest, outcome):
+                    pass
+            x._test_result = DummyTestResult()
         x.setUp()
         try:
             x.runTest()
Index: fs-2.4.16/fs/_ftp_parse.py
===================================================================
--- fs-2.4.16.orig/fs/_ftp_parse.py
+++ fs-2.4.16/fs/_ftp_parse.py
@@ -86,6 +86,12 @@ def parse_line(line):
 def _parse_time(t, formats):
     for frmt in formats:
         try:
+            # strptime() raises ValueError when the format string
+            # contains %d without a year directive in 3.15
+            current_year = time.localtime().tm_year
+            has_year = "%Y" in frmt or "%y" in frmt
+            t = t if has_year else f"{current_year} {t}"
+            frmt = frmt if has_year else f"%Y {frmt}"
             _t = time.strptime(t, frmt)
             break
         except ValueError:

Reply via email to