Message326825
Tests are failed when ran with -Werror.
$ ./python -Werror -m test -vuall test_asyncgen
...
======================================================================
ERROR: test_async_gen_asyncio_01 (test.test_asyncgen.AsyncGenAsyncioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_asyncgen.py", line 404, in test_async_gen_asyncio_01
res = self.loop.run_until_complete(self.to_list(gen()))
File "/home/serhiy/py/cpython/Lib/asyncio/base_events.py", line 582, in run_until_complete
return future.result()
File "/home/serhiy/py/cpython/Lib/test/test_asyncgen.py", line 391, in to_list
async for i in gen:
File "/home/serhiy/py/cpython/Lib/test/test_asyncgen.py", line 398, in gen
await asyncio.sleep(0.01, loop=self.loop)
File "/home/serhiy/py/cpython/Lib/asyncio/tasks.py", line 598, in sleep
warnings.warn("The loop argument is deprecated and scheduled for "
DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
======================================================================
...
(the full log is too long)
$ ./python -Werror -m test -vuall test_asyncio
...
======================================================================
FAIL: test_sleep_cancel (test.test_asyncio.test_tasks.PyTask_PyFuture_SubclassTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_asyncio/utils.py", line 510, in close_loop
loop.close()
File "/home/serhiy/py/cpython/Lib/test/test_asyncio/utils.py", line 362, in close
self._gen.send(0)
File "/home/serhiy/py/cpython/Lib/test/test_asyncio/test_tasks.py", line 1363, in gen
self.assertAlmostEqual(10.0, when)
AssertionError: 10.0 != 0 within 7 places (10.0 difference)
======================================================================
FAIL: test_run_coroutine_threadsafe_task_factory_exception (test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests)
Test coroutine submission from a tread to an event loop
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_asyncio/test_tasks.py", line 3189, in test_run_coroutine_threadsafe_task_factory_exception
self.assertEqual(len(callback.call_args_list), 1)
AssertionError: 2 != 1
----------------------------------------------------------------------
...
(the full log is too long) |
|
Date |
User |
Action |
Args |
2018-10-01 20:40:59 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, asvetlov, yselivanov, willingc, xtreak, fbidu |
2018-10-01 20:40:59 | serhiy.storchaka | set | messageid: <1538426459.76.0.545547206417.issue34728@psf.upfronthosting.co.za> |
2018-10-01 20:40:59 | serhiy.storchaka | link | issue34728 messages |
2018-10-01 20:40:59 | serhiy.storchaka | create | |
|