Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-aiounittest for 
openSUSE:Factory checked in at 2022-08-11 18:32:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aiounittest (Old)
 and      /work/SRC/openSUSE:Factory/.python-aiounittest.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-aiounittest"

Thu Aug 11 18:32:51 2022 rev:3 rq:994491 version:1.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aiounittest/python-aiounittest.changes    
2022-01-15 20:05:47.381786594 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-aiounittest.new.1521/python-aiounittest.changes
  2022-08-11 18:33:09.874211954 +0200
@@ -1,0 +2,7 @@
+Thu Aug  4 08:27:19 UTC 2022 - Otto Hollmann <otto.hollm...@suse.com>
+
+- Update to 1.4.2:
+  * test_sync_async_add: After closing the default event loop, set a new one
+  * Don't run @asyncio.coroutine tests with Python 3.11
+
+-------------------------------------------------------------------

Old:
----
  aiounittest-1.4.1.tar.gz

New:
----
  aiounittest-1.4.2.tar.gz

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

Other differences:
------------------
++++++ python-aiounittest.spec ++++++
--- /var/tmp/diff_new_pack.p7KdvO/_old  2022-08-11 18:33:10.362211205 +0200
+++ /var/tmp/diff_new_pack.p7KdvO/_new  2022-08-11 18:33:10.374211187 +0200
@@ -20,7 +20,7 @@
 %{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-aiounittest
-Version:        1.4.1
+Version:        1.4.2
 Release:        0
 Summary:        Test AyncIO Python Code Easily
 License:        MIT

++++++ aiounittest-1.4.1.tar.gz -> aiounittest-1.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiounittest-1.4.1/.travis.yml 
new/aiounittest-1.4.2/.travis.yml
--- old/aiounittest-1.4.1/.travis.yml   2021-10-22 16:14:05.000000000 +0200
+++ new/aiounittest-1.4.2/.travis.yml   2022-06-13 15:06:25.000000000 +0200
@@ -10,5 +10,6 @@
       sudo: true
 # command to install dependencies
 install:
+  - "pip install -U importlib_metadata"
   - "python setup.py install"
 script: nosetests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiounittest-1.4.1/setup.py 
new/aiounittest-1.4.2/setup.py
--- old/aiounittest-1.4.1/setup.py      2021-10-22 16:14:05.000000000 +0200
+++ new/aiounittest-1.4.2/setup.py      2022-06-13 15:06:25.000000000 +0200
@@ -8,7 +8,7 @@
 setup(
     name='aiounittest',
     packages=['aiounittest'],
-    version='1.4.1',
+    version='1.4.2',
     author='Krzysztof Warunek',
     author_email='krzysz...@warunek.net',
     description='Test asyncio code more easily.',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiounittest-1.4.1/tests/test_asynctestcase.py 
new/aiounittest-1.4.2/tests/test_asynctestcase.py
--- old/aiounittest-1.4.1/tests/test_asynctestcase.py   2021-10-22 
16:14:05.000000000 +0200
+++ new/aiounittest-1.4.2/tests/test_asynctestcase.py   2022-06-13 
15:06:25.000000000 +0200
@@ -1,6 +1,7 @@
 import aiounittest
 import asyncio
 import time
+import sys
 from unittest import expectedFailure
 
 
@@ -33,14 +34,18 @@
         loop.close()
         self.assertEqual(ret, 6)
 
+        # Set a new event loop, since we closed the old one
+        asyncio.set_event_loop(asyncio.new_event_loop())
+
     async def test_await_async_add(self):
         ret = await async_add(1, 5)
         self.assertEqual(ret, 6)
 
-    @asyncio.coroutine
-    def test_yield_async_add(self):
-        ret = yield from async_add(1, 5)
-        self.assertEqual(ret, 6)
+    if sys.version_info < (3, 11):
+        @asyncio.coroutine
+        def test_yield_async_add(self):
+            ret = yield from async_add(1, 5)
+            self.assertEqual(ret, 6)
 
     async def test_await_async_fail(self):
         with self.assertRaises(Exception) as e:
@@ -51,8 +56,9 @@
         ret = await async_add(1, 5)
         self.assertEqual(ret, -1)
 
-    @expectedFailure
-    @asyncio.coroutine
-    def test_yield_async_add(self):
-        ret = yield from async_add(1, 5)
-        self.assertEqual(ret, -1)
+    if sys.version_info < (3, 11):
+        @expectedFailure
+        @asyncio.coroutine
+        def test_yield_async_add(self):
+            ret = yield from async_add(1, 5)
+            self.assertEqual(ret, -1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aiounittest-1.4.1/tests/test_asynctestcase_get_event_loop.py 
new/aiounittest-1.4.2/tests/test_asynctestcase_get_event_loop.py
--- old/aiounittest-1.4.1/tests/test_asynctestcase_get_event_loop.py    
2021-10-22 16:14:05.000000000 +0200
+++ new/aiounittest-1.4.2/tests/test_asynctestcase_get_event_loop.py    
2022-06-13 15:06:25.000000000 +0200
@@ -1,6 +1,7 @@
 import aiounittest
 import asyncio
 import time
+import sys
 from unittest import expectedFailure
 
 
@@ -34,8 +35,9 @@
         self.assertEqual(ret, 6)
         self.assertFalse(self.my_loop.is_closed())
 
-    @asyncio.coroutine
-    def test_yield_async_add(self):
-        ret = yield from async_add(1, 5)
-        self.assertEqual(ret, 6)
-        self.assertFalse(self.my_loop.is_closed())
+    if sys.version_info < (3, 11):
+        @asyncio.coroutine
+        def test_yield_async_add(self):
+            ret = yield from async_add(1, 5)
+            self.assertEqual(ret, 6)
+            self.assertFalse(self.my_loop.is_closed())

Reply via email to