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 2025-07-10 23:14:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-parameterized (Old)
 and      /work/SRC/openSUSE:Factory/.python-parameterized.new.7373 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-parameterized"

Thu Jul 10 23:14:58 2025 rev:18 rq:1291571 version:0.9.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-parameterized/python-parameterized.changes    
    2024-07-25 12:07:06.689707838 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-parameterized.new.7373/python-parameterized.changes
      2025-07-10 23:15:13.296971878 +0200
@@ -1,0 +2,8 @@
+Thu Jul 10 02:30:29 UTC 2025 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add missing BuildRequires on setuptools.
+- Add patch remove-external-mock.patch:
+  * Remove requirement on external mock module.
+- Do not run testsuite with pytest, we already do so with unittest.
+
+-------------------------------------------------------------------

New:
----
  remove-external-mock.patch

----------(New B)----------
  New:- Add missing BuildRequires on setuptools.
- Add patch remove-external-mock.patch:
  * Remove requirement on external mock module.
----------(New E)----------

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

Other differences:
------------------
++++++ python-parameterized.spec ++++++
--- /var/tmp/diff_new_pack.lTEl3l/_old  2025-07-10 23:15:13.993000872 +0200
+++ /var/tmp/diff_new_pack.lTEl3l/_new  2025-07-10 23:15:13.997001039 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-parameterized
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -42,8 +42,11 @@
 Patch3:         fix-assert-method.patch
 # PATCH-FIX-UPSTREAM gh#wolever/parameterized#176
 Patch4:         fix-tests-with-python3.13.patch
+# PATCH-FIX-UPSTREAM Based on gh#wolever/parameterized#186
+Patch5:         remove-external-mock.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 %if %{with nose2}
 BuildRequires:  %{python_module nose2}
@@ -67,16 +70,11 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# https://github.com/wolever/parameterized/issues/122
-sed -i 's:import mock:from unittest import mock:' parameterized/test.py
 export LANG=en_US.UTF8
 %if %{with nose2}
 %{python_expand nose2-%$python_version -v -B --pretty-assert}
 %endif
 %python_exec -m unittest parameterized.test
-# gh#wolever/parameterized#122
-skip_tests="test_with_docstring_1_v_l_ or test_with_docstring_0_value1"
-%pytest parameterized/test.py -k "not ($skip_tests)"
 
 %files %{python_files}
 %doc README.rst

++++++ remove-external-mock.patch ++++++
>From caa701915f1ef6a940d9589f91ff0853f930084f Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <c...@musicinmybrain.net>
Date: Tue, 6 May 2025 10:02:24 -0400
Subject: [PATCH] Remove test dependency on PyPI mock

Use `unittest.mock` from the Python standard library instead.
---
 parameterized/test.py | 3 +--
 tox.ini               | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

Index: parameterized-0.9.0/parameterized/test.py
===================================================================
--- parameterized-0.9.0.orig/parameterized/test.py
+++ parameterized-0.9.0/parameterized/test.py
@@ -2,9 +2,8 @@
 
 import inspect
 import sys
-import mock
 from functools import wraps
-from unittest import TestCase
+from unittest import TestCase, mock
 import pytest
 
 from .parameterized import (

Reply via email to