From: Marius Bakke <mbakke@fastmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>, 26286@debbugs.gnu.org
Subject: bug#26286: python-pexpect 4.2.1 test failure in test_async_utf8
Date: Mon, 03 Apr 2017 19:32:12 +0200 [thread overview]
Message-ID: <87efx9bdnn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87inmsucyn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>
[-- Attachment #1: Type: text/plain, Size: 3125 bytes --]
Marius Bakke <mbakke@fastmail.com> writes:
> Danny Milosavljevic <dannym@scratchpost.org> writes:
>
>> python-pexpect 4.2.1 has a test failure on both master and core-updates:
>
> [...]
>
>> ======================================================================
>> ERROR: test_async_utf8 (tests.test_async.AsyncTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 57, in test_async_utf8
>> assert run(p.expect_exact([u'foo', pexpect.EOF], async=True)) == 1
>> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 13, in run
>> return asyncio.get_event_loop().run_until_complete(coro)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
>> return future.result()
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/futures.py", line 274, in result
>> raise self._exception
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/tasks.py", line 239, in _step
>> result = coro.send(None)
>> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/pexpect/async.py", line 17, in expect_async
>> .connect_read_pipe(lambda: PatternWaiter(expecter), expecter.spawn)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 986, in connect_read_pipe
>> transport = self._make_read_pipe_transport(pipe, protocol, waiter)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 169, in _make_read_pipe_transport
>> return _UnixReadPipeTransport(self, pipe, protocol, waiter, extra)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 308, in __init__
>> mode = os.fstat(self._fileno).st_mode
>> OSError: [Errno 9] Bad file descriptor
>> -------------------- >> begin captured stdout << ---------------------
>>
>> tests.test_async.AsyncTests.test_async_utf8
>> --------------------- >> end captured stdout << ----------------------
>> -------------------- >> begin captured logging << --------------------
>> asyncio: DEBUG: Using selector: EpollSelector
>> --------------------- >> end captured logging << ---------------------
>>
>> ----------------------------------------------------------------------
>> Ran 52 tests in 23.885s
>>
>> FAILED (errors=1)
>
> Thanks for the report! I am no longer able to reproduce this issue on
> 'master' after 3ee9355e2fd2d0fcee1076ca1160ba5881b73da8. I'm not
> entirely sure why, though :-)
So, this occured again after the core-updates merge. I managed to work
around it by changing "python-pytest" to "python-pytest-3.0", which is
very odd.
There is a race condition lurking here somewhere, but I built with
"--rounds=10" after both "fixes" without problems.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
prev parent reply other threads:[~2017-04-03 17:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 20:09 bug#26286: python-pexpect 4.2.1 test failure in test_async_utf8 Danny Milosavljevic
2017-03-29 0:46 ` Marius Bakke
2017-04-03 17:32 ` Marius Bakke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efx9bdnn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=26286@debbugs.gnu.org \
--cc=dannym@scratchpost.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).