Control: tag -1 confirmed
Control: retitle -1 python-asynctest: incompatible with Python 3.8
Control: https://github.com/Martiusweb/asynctest/issues/132

Quoting Lucas Nussbaum (2020-03-22 08:57:19)
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> Relevant part (hopefully):
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > python3 -m unittest --verbose test
> > test_exhaust_callbacks_cascading_callbacks (test.test_helpers.TestExhaust) 
> > ... /<<PKGBUILDDIR>>/test/test_helpers.py:12: DeprecationWarning: The loop 
> > argument is deprecated since Python 3.8, and scheduled for removal in 
> > Python 3.10.
[...]
> > test_called_CoroutineMock_returns_MagicMock 
> > (test.test_mock.Test_CoroutineMock) ... 
> > /<<PKGBUILDDIR>>/asynctest/mock.py:599: DeprecationWarning: "@coroutine" 
> > decorator is deprecated since Python 3.8, use "async def" instead
[...]
> > test_exception_side_effect_raises_in_coroutine 
> > (test.test_mock.Test_CoroutineMock) ... 
> > /<<PKGBUILDDIR>>/asynctest/mock.py:594: DeprecationWarning: "@coroutine" 
> > decorator is deprecated since Python 3.8, use "async def" instead
[...]
> > test_returns_coroutine_from_side_effect_being_a_coroutine 
> > (test.test_mock.Test_CoroutineMock) ... 
> > /<<PKGBUILDDIR>>/test/test_mock.py:176: DeprecationWarning: "@coroutine" 
> > decorator is deprecated since Python 3.8, use "async def" instead
[...]
> > ======================================================================
> > FAIL: test_awaited_from_autospec_mock 
> > (test.test_mock.Test_CoroutineMock_awaited)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/asynctest/case.py", line 297, in run
> >     self._run_test_method(testMethod)
> >   File "/<<PKGBUILDDIR>>/asynctest/case.py", line 354, in _run_test_method
> >     self.loop.run_until_complete(result)
> >   File "/<<PKGBUILDDIR>>/asynctest/case.py", line 224, in wrapper
> >     return method(*args, **kwargs)
> >   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in 
> > run_until_complete
> >     return future.result()
> >   File "/<<PKGBUILDDIR>>/test/test_mock.py", line 577, in 
> > test_awaited_from_autospec_mock
> >     self.assertEqual(1, mock.a_coroutine.await_count)
> > AssertionError: 1 != 2
> > 
> > ======================================================================
> > FAIL: test_create_autospec_on_coroutine_and_using_assert_methods 
> > (test.test_mock.Test_CoroutineMock_awaited)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/asynctest/case.py", line 297, in run
> >     self._run_test_method(testMethod)
> >   File "/<<PKGBUILDDIR>>/asynctest/case.py", line 354, in _run_test_method
> >     self.loop.run_until_complete(result)
> >   File "/<<PKGBUILDDIR>>/asynctest/case.py", line 224, in wrapper
> >     return method(*args, **kwargs)
> >   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in 
> > run_until_complete
> >     return future.result()
> >   File "/<<PKGBUILDDIR>>/test/test_mock.py", line 778, in 
> > test_create_autospec_on_coroutine_and_using_assert_methods
> >     mock.assert_awaited_once()
> >   File "/usr/lib/python3.8/unittest/mock.py", line 2190, in 
> > assert_awaited_once
> >     raise AssertionError(msg)
> > AssertionError: Expected mock to have been awaited once. Awaited 2 times.
> > 
> > ======================================================================
> > FAIL: test_patch_coroutine_with_multiple_scopes 
> > (test.test_mock.Test_patch_decorator_coroutine_or_generator_scope) [new 
> > style coroutine - Outer: GLOBAL, inner: LIMITED]
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/test/test_mock.py", line 1719, in 
> > test_patch_coroutine_with_multiple_scopes
> >     run_coroutine(tester(a_native_coroutine))
> >   File "/<<PKGBUILDDIR>>/test/utils.py", line 9, in run_coroutine
> >     return loop.run_until_complete(coroutine)
> >   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in 
> > run_until_complete
> >     return future.result()
> >   File "/<<PKGBUILDDIR>>/test/test_mock.py", line 1683, in tester
> >     self.assertEqual((True, False), fut.result())
> > AssertionError: Tuples differ: (True, False) != (True, True)

Seems that current release doesn't support Python 3.8, as indicated by 
this comment: 
https://github.com/Martiusweb/asynctest/pull/134#issuecomment-511527234


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

Reply via email to