Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 593782

Summary: www-servers/tornado-4.3 with python3.5 fails tests test_iterator_async_await test_async_for - PendingDeprecationWarning: 'WaitIterator' implements legacy __aiter__ protocol; __aiter__ should return an asynchronous iterator, not awaitable
Product: Gentoo Linux Reporter: eroen <erikdenstore+gbugs>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: kentnl, python
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
tornado-4.5.1.ebuild

Description eroen 2016-09-14 17:07:56 UTC
Created attachment 445700 [details]
build.log

======================================================================
ERROR: test_iterator_async_await (tornado.test.gen_test.WaitIteratorTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/testing.py", line 132, in __call__
    result = self.orig_method(*args, **kwargs)
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/testing.py", line 525, in post_coroutine
    timeout=timeout)
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/ioloop.py", line 453, in run_sync
    return future_cell[0].result()
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/gen.py", line 1014, in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/lib64/python3.5/types.py", line 179, in throw
    return self.__wrapped.throw(tp, *rest)
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/test/gen_test.py", line 1345, in test_iterator_async_await
    yield namespace['f']()
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/gen.py", line 1008, in run
    value = future.result()
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/gen.py", line 282, in wrapper
    yielded = next(result)
  File "<string>", line 6, in _wrap_awaitable
  File "<string>", line 6, in f
PendingDeprecationWarning: 'WaitIterator' implements legacy __aiter__ protocol; __aiter__ should return an asynchronous iterator, not awaitable

======================================================================
ERROR: test_async_for (tornado.test.queues_test.QueueGetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/testing.py", line 132, in __call__
    result = self.orig_method(*args, **kwargs)
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/testing.py", line 525, in post_coroutine
    timeout=timeout)
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/ioloop.py", line 453, in run_sync
    return future_cell[0].result()
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/gen.py", line 1014, in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/lib64/python3.5/types.py", line 179, in throw
    return self.__wrapped.throw(tp, *rest)
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/test/queues_test.py", line 174, in test_async_for
    results = yield namespace['f']()
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/gen.py", line 1008, in run
    value = future.result()
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "/var/tmp/portage/www-servers/tornado-4.3/work/tornado-4.3/tornado/gen.py", line 282, in wrapper
    yielded = next(result)
  File "<string>", line 6, in _wrap_awaitable
  File "<string>", line 4, in f
PendingDeprecationWarning: 'Queue' implements legacy __aiter__ protocol; __aiter__ should return an asynchronous iterator, not awaitable

----------------------------------------------------------------------
Ran 1315 tests in 12.713s

FAILED (errors=2, skipped=26)
Some tests were skipped because: needs fix, no testable future
imports, pycares module not present, tornado.speedups module not
present, twisted module not present
[E 160914 17:01:30 testing:731] FAIL
[E 160914 17:01:30 runtests:175] logged 0 warnings and 1 errors
 * ERROR: www-servers/tornado-4.3::gentoo failed (test phase):
 *   tests failed under python3.5
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_test
 *   environment, line 3695:  Called distutils-r1_src_test
 *   environment, line 1006:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  338:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3203:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2308:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2306:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  614:  Called distutils-r1_run_phase 'python_test'
 *   environment, line  938:  Called python_test
 *   environment, line 3574:  Called die
 * The specific snippet of code:
 *       "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
Comment 1 Aaron W. Swenson gentoo-dev 2017-06-02 10:53:12 UTC
Created attachment 474978 [details]
tornado-4.5.1.ebuild

The latest release passed tests for me.

Version bumped and PATCHES removed.
Comment 2 Pacho Ramos gentoo-dev 2018-03-10 14:51:51 UTC
4.5.1 is already in the tree
Comment 3 Pacho Ramos gentoo-dev 2018-03-10 14:56:12 UTC
*** Bug 619466 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Pipping gentoo-dev 2020-04-13 16:39:20 UTC
There is no more tornado 4.3 and no more Python 3.5 in Gentoo.  I'll close this as obsolete but please feel free to re-open as needed.