Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-extras for openSUSE:Factory checked in at 2026-03-17 19:02:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-extras (Old) and /work/SRC/openSUSE:Factory/.python-extras.new.8177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-extras" Tue Mar 17 19:02:17 2026 rev:17 rq:1339195 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-extras/python-extras.changes 2025-05-30 17:25:29.935690834 +0200 +++ /work/SRC/openSUSE:Factory/.python-extras.new.8177/python-extras.changes 2026-03-17 19:02:28.459645063 +0100 @@ -1,0 +2,6 @@ +Fri Mar 13 01:54:04 UTC 2026 - Steve Kowalik <[email protected]> + +- Add patch fix-assertion.patch: + * Use assertEqual rather than assertEquals. + +------------------------------------------------------------------- New: ---- fix-assertion.patch ----------(New B)---------- New: - Add patch fix-assertion.patch: * Use assertEqual rather than assertEquals. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-extras.spec ++++++ --- /var/tmp/diff_new_pack.nw13Tp/_old 2026-03-17 19:02:29.103671474 +0100 +++ /var/tmp/diff_new_pack.nw13Tp/_new 2026-03-17 19:02:29.107671638 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-extras # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,6 +33,8 @@ License: MIT URL: https://github.com/testing-cabal/extras Source: https://files.pythonhosted.org/packages/source/e/extras/extras-%{version}.tar.gz +# PATCH-FIX-UPSTREAM Based on gh#testing-cabal/extras#26 +Patch0: fix-assertion.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} @@ -53,7 +55,7 @@ general use outside of a testing context. %prep -%setup -q -n extras-%{version} +%autosetup -p1 -n extras-%{version} %build %pyproject_wheel @@ -74,6 +76,6 @@ %license LICENSE %doc NEWS README.rst %{python_sitelib}/extras -%{python_sitelib}/extras-%{version}*-info/ +%{python_sitelib}/extras-%{version}.dist-info %endif ++++++ fix-assertion.patch ++++++ >From ca7a45f21ba2f42a1c345172d065c673a4de9faa Mon Sep 17 00:00:00 2001 From: Felix Yan <[email protected]> Date: Tue, 3 Feb 2026 11:57:26 +0800 Subject: [PATCH] Fix assertion method from assertEquals to assertEqual Fixes the following test errors: ``` Tests running... ====================================================================== ERROR: extras.tests.test_extras.TestTryImport.test_error_callback ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 120, in test_error_callback check_error_callback(self, try_import, 'doesntexist', 1, False) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 43, in check_error_callback test.assertEquals(len(cb_calls), expected_error_count) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestTryImport' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: extras.tests.test_extras.TestTryImport.test_error_callback_missing_module_member ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 125, in test_error_callback_missing_module_member check_error_callback(self, try_import, 'os.nonexistent', 1, False) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 43, in check_error_callback test.assertEquals(len(cb_calls), expected_error_count) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestTryImport' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: extras.tests.test_extras.TestTryImport.test_error_callback_not_on_success ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 129, in test_error_callback_not_on_success check_error_callback(self, try_import, 'os.path', 0, True) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 43, in check_error_callback test.assertEquals(len(cb_calls), expected_error_count) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestTryImport' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: extras.tests.test_extras.TestTryImports.test_error_callback ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 197, in test_error_callback check_error_callback(self, try_imports, ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ ['os.doesntexist', 'os.notthiseither'], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2, False) ^^^^^^^^^ File "/build/python-extras/src/extras/extras/tests/test_extras.py", line 43, in check_error_callback test.assertEquals(len(cb_calls), expected_error_count) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestTryImports' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? Ran 22 tests in 0.002s FAILED (failures=4) ``` --- extras/tests/test_extras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: extras-1.0.0/extras/tests/test_extras.py =================================================================== --- extras-1.0.0.orig/extras/tests/test_extras.py +++ extras-1.0.0/extras/tests/test_extras.py @@ -40,7 +40,7 @@ def check_error_callback(test, function, test.assertThat(result, Not(Is(None))) else: test.assertThat(result, Is(None)) - test.assertEquals(len(cb_calls), expected_error_count) + test.assertEqual(len(cb_calls), expected_error_count) class TestSafeHasattr(TestCase):
