Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-PyHamcrest for 
openSUSE:Factory checked in at 2025-09-25 18:43:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyHamcrest (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyHamcrest.new.11973 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyHamcrest"

Thu Sep 25 18:43:50 2025 rev:9 rq:1306900 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyHamcrest/python-PyHamcrest.changes      
2024-01-29 22:26:37.156232843 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-PyHamcrest.new.11973/python-PyHamcrest.changes
   2025-09-25 18:44:11.683407194 +0200
@@ -1,0 +2,5 @@
+Wed Sep 24 10:38:32 UTC 2025 - Markéta Machová <[email protected]>
+
+- Add py314.patch to fix tests with Python 3.14
+
+-------------------------------------------------------------------

New:
----
  py314.patch

----------(New B)----------
  New:
- Add py314.patch to fix tests with Python 3.14
----------(New E)----------

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

Other differences:
------------------
++++++ python-PyHamcrest.spec ++++++
--- /var/tmp/diff_new_pack.Fm2Z0B/_old  2025-09-25 18:44:12.207429127 +0200
+++ /var/tmp/diff_new_pack.Fm2Z0B/_new  2025-09-25 18:44:12.211429295 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-PyHamcrest
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 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
@@ -25,6 +25,8 @@
 URL:            https://github.com/hamcrest/PyHamcrest
 Source:         
https://files.pythonhosted.org/packages/source/p/pyhamcrest/pyhamcrest-%{version}.tar.gz
 Patch0:         0001-Add-boolean-matchers.patch
+# PATCH-FIX-UPSTREAM https://github.com/hamcrest/PyHamcrest/pull/270 use 
asyncio.new_event_loop in tests for compatibility with Python 3.14
+Patch1:         py314.patch
 BuildRequires:  %{python_module hatch_vcs}
 BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module hypothesis >= 1.11}

++++++ py314.patch ++++++
Index: pyhamcrest-2.1.0/tests/hamcrest_unit_test/core/future_test.py
===================================================================
--- pyhamcrest-2.1.0.orig/tests/hamcrest_unit_test/core/future_test.py
+++ pyhamcrest-2.1.0/tests/hamcrest_unit_test/core/future_test.py
@@ -41,20 +41,20 @@ class FutureExceptionTest(MatcherTest):
                 await resolved(raise_exception()),
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testDoesNotMatchIfActualIsNotAFuture(self):
         async def test():
             self.assert_does_not_match("Not a future", 
future_raising(TypeError), 23)
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testDoesNotMatchIfFutureIsNotDone(self):
-        future = asyncio.Future()
+        future = asyncio.Future(loop=asyncio.new_event_loop())
         self.assert_does_not_match("Unresolved future", 
future_raising(TypeError), future)
 
     def testDoesNotMatchIfFutureIsCancelled(self):
-        future = asyncio.Future()
+        future = asyncio.Future(loop=asyncio.new_event_loop())
         future.cancel()
         self.assert_does_not_match("Cancelled future", 
future_raising(TypeError), future)
 
@@ -73,7 +73,7 @@ class FutureExceptionTest(MatcherTest):
                 expected_message, future_raising(TypeError), await 
resolved(raise_exception())
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     @pytest.mark.skipif(sys.version_info < (3, 7), reason="Message differs 
between Python versions")
     def testDoesNotMatchIfFutureHasTheWrongExceptionTypePy37(self):
@@ -88,7 +88,7 @@ class FutureExceptionTest(MatcherTest):
                 expected_message, future_raising(TypeError), await 
resolved(raise_exception())
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testMatchesIfFutureHasASubclassOfTheExpectedException(self):
         async def test():
@@ -98,7 +98,7 @@ class FutureExceptionTest(MatcherTest):
                 await resolved(raise_exception()),
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testDoesNotMatchIfFutureDoesNotHaveException(self):
         async def test():
@@ -106,7 +106,7 @@ class FutureExceptionTest(MatcherTest):
                 "No exception", future_raising(ValueError), await 
resolved(no_exception())
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testDoesNotMatchExceptionIfRegularExpressionDoesNotMatch(self):
         async def test():
@@ -121,7 +121,7 @@ class FutureExceptionTest(MatcherTest):
                 await resolved(raise_exception()),
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testMatchesRegularExpressionToStringifiedException(self):
         async def test():
@@ -137,7 +137,7 @@ class FutureExceptionTest(MatcherTest):
                 await resolved(raise_exception(3, 1, 4)),
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testMachesIfExceptionMatchesAdditionalMatchers(self):
         async def test():
@@ -147,7 +147,7 @@ class FutureExceptionTest(MatcherTest):
                 await resolved(raise_exception_with_properties(prip="prop")),
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testDoesNotMatchIfAdditionalMatchersDoesNotMatch(self):
         async def test():
@@ -162,7 +162,7 @@ class FutureExceptionTest(MatcherTest):
                 await resolved(raise_exception_with_properties(prip="prop")),
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())
 
     def testDoesNotMatchIfNeitherPatternOrMatcherMatch(self):
         async def test():
@@ -181,4 +181,4 @@ class FutureExceptionTest(MatcherTest):
                 await resolved(raise_exception_with_properties(prip="prop")),
             )
 
-        asyncio.get_event_loop().run_until_complete(test())
+        asyncio.new_event_loop().run_until_complete(test())

Reply via email to