Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-parameterized for 
openSUSE:Factory checked in at 2023-08-16 14:16:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-parameterized (Old)
 and      /work/SRC/openSUSE:Factory/.python-parameterized.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-parameterized"

Wed Aug 16 14:16:32 2023 rev:15 rq:1104007 version:0.9.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-parameterized/python-parameterized.changes    
    2023-05-13 17:17:36.590370264 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-parameterized.new.11712/python-parameterized.changes
     2023-08-16 14:16:45.526836455 +0200
@@ -1,0 +2,6 @@
+Tue Aug 15 09:02:40 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch fix-assert-method.patch:
+  * Use correct assertion method.
+
+-------------------------------------------------------------------

New:
----
  fix-assert-method.patch

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

Other differences:
------------------
++++++ python-parameterized.spec ++++++
--- /var/tmp/diff_new_pack.PYNSHZ/_old  2023-08-16 14:16:46.262841115 +0200
+++ /var/tmp/diff_new_pack.PYNSHZ/_new  2023-08-16 14:16:46.266841140 +0200
@@ -38,6 +38,8 @@
 # PATCH-FIX-UPSTREAM skip_failing_teardown.patch gh#wolever/parameterized#167 
mc...@suse.com
 # skip failing assert in tearDownModule [sic]
 Patch2:         skip_failing_teardown.patch
+# PATCH-FIX-UPSTREAM gh#wolever/parameterized#169
+Patch3:         fix-assert-method.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module wheel}
@@ -80,6 +82,6 @@
 # %%doc CHANGELOG.txt
 %license LICENSE.txt
 %{python_sitelib}/parameterized
-%{python_sitelib}/parameterized-%{version}*-info
+%{python_sitelib}/parameterized-%{version}.dist-info
 
 %changelog

++++++ fix-assert-method.patch ++++++
>From d64843df5f339f486a9b29d492f2988a3bf8485b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <tomas.hrnc...@me.com>
Date: Tue, 2 May 2023 13:48:00 +0200
Subject: [PATCH] Remove the usage of assertRaisesRegexp unit test alias
 removed in Python 3.12

https://bugs.python.org/issue?@action=redirect&bpo=45162
---
 parameterized/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parameterized/test.py b/parameterized/test.py
index 6c71f79..498c591 100644
--- a/parameterized/test.py
+++ b/parameterized/test.py
@@ -35,7 +35,7 @@ def assert_raises_regexp_decorator(expected_exception, 
expected_regexp):
     def func_decorator(func):
         @wraps(func)
         def wrapper(self, *args, **kwargs):
-            with self.assertRaisesRegexp(expected_exception, expected_regexp):
+            with self.assertRaisesRegex(expected_exception, expected_regexp):
                 func(self, *args, **kwargs)
 
         return wrapper

Reply via email to