This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gvanrossum, vstinner
Date 2013-11-13.00:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384301977.23.0.703867213373.issue19566@psf.upfronthosting.co.za>
In-reply-to
Content
The following test of test_asyncio failed once. I didn't check if it failed more than once on this buildbot.

The cleanup code is not safe, it should handle errors correctly, so following tests would not fail.

http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/5421/steps/test/logs/stdio

======================================================================
ERROR: test_close (test.test_asyncio.test_unix_events.FastChildWatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/asyncio/unix_events.py", line 662, in _do_waitpid_all
    callback, args = self._callbacks.pop(pid)
KeyError: 7673

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/test/test_asyncio/test_unix_events.py", line 723, in setUp
    self.watcher = self.create_watcher(self.loop)
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/test/test_asyncio/test_unix_events.py", line 1466, in create_watcher
    return unix_events.FastChildWatcher(loop)
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/asyncio/unix_events.py", line 596, in __init__
    super().__init__(loop)
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/asyncio/unix_events.py", line 474, in __init__
    self.set_loop(loop)
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/asyncio/unix_events.py", line 498, in set_loop
    self._do_waitpid_all()
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/asyncio/unix_events.py", line 665, in _do_waitpid_all
    with self._lock:
AttributeError: 'FastChildWatcher' object has no attribute '_lock'


Following tests fail like that:

======================================================================
FAIL: test_create_watcher (test.test_asyncio.test_unix_events.FastChildWatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/test/test_asyncio/test_unix_events.py", line 718, in setUp
    assert ChildWatcherTestsMixin.instance is None
AssertionError
History
Date User Action Args
2013-11-13 00:19:37vstinnersetrecipients: + vstinner, gvanrossum
2013-11-13 00:19:37vstinnersetmessageid: <1384301977.23.0.703867213373.issue19566@psf.upfronthosting.co.za>
2013-11-13 00:19:37vstinnerlinkissue19566 messages
2013-11-13 00:19:36vstinnercreate