Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-oslotest for openSUSE:Factory 
checked in at 2026-05-28 17:32:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslotest (Old)
 and      /work/SRC/openSUSE:Factory/.python-oslotest.new.1937 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oslotest"

Thu May 28 17:32:37 2026 rev:30 rq:1355594 version:6.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslotest/python-oslotest.changes  
2026-04-12 17:52:28.459562295 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-oslotest.new.1937/python-oslotest.changes    
    2026-05-28 17:32:41.201988334 +0200
@@ -1,0 +2,8 @@
+Mon May 18 10:00:56 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 6.1.1:
+  * typing: Broaden type for create_tempfiles
+  * typing: Indicate type for TIMEOUT_SCALING_FACTOR
+  * Remove redundant monkey patching
+
+-------------------------------------------------------------------

Old:
----
  oslotest-6.1.0.tar.gz

New:
----
  oslotest-6.1.1.tar.gz

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

Other differences:
------------------
++++++ python-oslotest.spec ++++++
--- /var/tmp/diff_new_pack.RTgON8/_old  2026-05-28 17:32:42.302033770 +0200
+++ /var/tmp/diff_new_pack.RTgON8/_new  2026-05-28 17:32:42.306033936 +0200
@@ -25,7 +25,7 @@
 %bcond_with test
 %endif
 Name:           python-oslotest%{psuffix}
-Version:        6.1.0
+Version:        6.1.1
 Release:        0
 Summary:        OpenStack test framework
 License:        Apache-2.0

++++++ oslotest-6.1.0.tar.gz -> oslotest-6.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslotest-6.1.0/ChangeLog new/oslotest-6.1.1/ChangeLog
--- old/oslotest-6.1.0/ChangeLog        2026-03-24 11:32:27.000000000 +0100
+++ new/oslotest-6.1.1/ChangeLog        2026-04-20 09:55:03.000000000 +0200
@@ -1,6 +1,13 @@
 CHANGES
 =======
 
+6.1.1
+-----
+
+* typing: Broaden type for create\_tempfiles
+* typing: Indicate type for TIMEOUT\_SCALING\_FACTOR
+* Remove redundant monkey patching
+
 6.1.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslotest-6.1.0/PKG-INFO new/oslotest-6.1.1/PKG-INFO
--- old/oslotest-6.1.0/PKG-INFO 2026-03-24 11:32:28.078053200 +0100
+++ new/oslotest-6.1.1/PKG-INFO 2026-04-20 09:55:03.736543400 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: oslotest
-Version: 6.1.0
+Version: 6.1.1
 Summary: Oslo test framework
 Author-email: OpenStack <[email protected]>
 Project-URL: Homepage, https://docs.openstack.org/oslotest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslotest-6.1.0/oslotest/base.py 
new/oslotest-6.1.1/oslotest/base.py
--- old/oslotest-6.1.0/oslotest/base.py 2026-03-24 11:31:36.000000000 +0100
+++ new/oslotest-6.1.1/oslotest/base.py 2026-04-20 09:54:16.000000000 +0200
@@ -15,7 +15,7 @@
 
 """Common utilities used in testing"""
 
-from collections.abc import Callable, Sequence
+from collections.abc import Callable, Iterable
 import logging
 from typing import Any
 from unittest import mock
@@ -88,12 +88,8 @@
     """
 
     DEFAULT_TIMEOUT = 0
-    TIMEOUT_SCALING_FACTOR = 1
+    TIMEOUT_SCALING_FACTOR: int | float = 1
 
-    # FIXME(stephenfin): This should only accept two kwargs:
-    # - methodName (from stdlib)
-    # - runTest (from testtools)
-    # But we need to type testtools first
     def __init__(
         self,
         methodName: str = 'runTest',
@@ -156,7 +152,7 @@
 
     def create_tempfiles(
         self,
-        files: Sequence[
+        files: Iterable[
             tuple[str, str | bytes, str] | tuple[str, str | bytes]
         ],
         ext: str = '.conf',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslotest-6.1.0/oslotest/mock_fixture.py 
new/oslotest-6.1.1/oslotest/mock_fixture.py
--- old/oslotest-6.1.0/oslotest/mock_fixture.py 2026-03-24 11:31:36.000000000 
+0100
+++ new/oslotest-6.1.1/oslotest/mock_fixture.py 2026-04-20 09:54:16.000000000 
+0200
@@ -15,9 +15,8 @@
 
 from __future__ import annotations
 
-from collections.abc import Callable
 import functools
-from typing import Any, ParamSpec, TypeVar, TYPE_CHECKING
+from typing import Any, TypeVar, TYPE_CHECKING
 from unittest import mock
 
 import fixtures
@@ -201,32 +200,7 @@
             return super().__enter__()
 
 
-P = ParamSpec('P')
-R = TypeVar('R')
-
-
-def _safe_attribute_error_wrapper(
-    func: Callable[P, R],
-) -> Callable[P, R | None]:
-    def wrapper(*args: P.args, **kwargs: P.kwargs) -> R | None:
-        try:
-            return func(*args, **kwargs)
-        except AttributeError:
-            return None
-
-    return wrapper
-
-
 def patch_mock_module() -> None:
     """Replaces the mock.patch class."""
     # NOTE: _patch is a private class in the mock module
     mock._patch = _patch  # type: ignore[misc]
-
-    # NOTE(claudiub): mock cannot autospec partial functions properly,
-    # especially those created by LazyLoader objects (scheduler client),
-    # as it will try to copy the partial function's __name__ (which they do
-    # not have).
-    # NOTE: _copy_func_details is a private function in the mock module
-    mock._copy_func_details = _safe_attribute_error_wrapper(  # type: 
ignore[attr-defined]
-        mock._copy_func_details  # type: ignore[attr-defined]
-    )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslotest-6.1.0/oslotest.egg-info/PKG-INFO 
new/oslotest-6.1.1/oslotest.egg-info/PKG-INFO
--- old/oslotest-6.1.0/oslotest.egg-info/PKG-INFO       2026-03-24 
11:32:28.000000000 +0100
+++ new/oslotest-6.1.1/oslotest.egg-info/PKG-INFO       2026-04-20 
09:55:03.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: oslotest
-Version: 6.1.0
+Version: 6.1.1
 Summary: Oslo test framework
 Author-email: OpenStack <[email protected]>
 Project-URL: Homepage, https://docs.openstack.org/oslotest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslotest-6.1.0/oslotest.egg-info/pbr.json 
new/oslotest-6.1.1/oslotest.egg-info/pbr.json
--- old/oslotest-6.1.0/oslotest.egg-info/pbr.json       2026-03-24 
11:32:28.000000000 +0100
+++ new/oslotest-6.1.1/oslotest.egg-info/pbr.json       2026-04-20 
09:55:03.000000000 +0200
@@ -1 +1 @@
-{"git_version": "3722be4", "is_release": true}
\ No newline at end of file
+{"git_version": "1eb1ea8", "is_release": true}
\ No newline at end of file

Reply via email to