From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#26286: python-pexpect 4.2.1 test failure in test_async_utf8 Date: Mon, 03 Apr 2017 19:32:12 +0200 Message-ID: <87efx9bdnn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20170328220932.53a4c550@scratchpost.org> <87inmsucyn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cv5qj-0006kr-Sh for bug-guix@gnu.org; Mon, 03 Apr 2017 13:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cv5qg-0003KH-Et for bug-guix@gnu.org; Mon, 03 Apr 2017 13:33:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:32956) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cv5qg-0003JR-1M for bug-guix@gnu.org; Mon, 03 Apr 2017 13:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cv5qf-0001KU-SB for bug-guix@gnu.org; Mon, 03 Apr 2017 13:33:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87inmsucyn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic , 26286@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Marius Bakke writes: > Danny Milosavljevic writes: > >> python-pexpect 4.2.1 has a test failure on both master and core-updates: > > [...] > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> 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/t= est_async.py", line 57, in test_async_utf8 >> assert run(p.expect_exact([u'foo', pexpect.EOF], async=3DTrue)) =3D= =3D 1 >> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/t= est_async.py", line 13, in run >> return asyncio.get_event_loop().run_until_complete(coro) >> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/pyt= hon3.5/asyncio/base_events.py", line 387, in run_until_complete >> return future.result() >> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/pyt= hon3.5/asyncio/futures.py", line 274, in result >> raise self._exception >> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/pyt= hon3.5/asyncio/tasks.py", line 239, in _step >> result =3D 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/pyt= hon3.5/asyncio/base_events.py", line 986, in connect_read_pipe >> transport =3D self._make_read_pipe_transport(pipe, protocol, waiter) >> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/pyt= hon3.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/pyt= hon3.5/asyncio/unix_events.py", line 308, in __init__ >> mode =3D os.fstat(self._fileno).st_mode >> OSError: [Errno 9] Bad file descriptor >> -------------------- >> begin captured stdout << --------------------- >> >> tests.test_async.AsyncTests.test_async_utf8=20 >> --------------------- >> end captured stdout << ---------------------- >> -------------------- >> begin captured logging << -------------------- >> asyncio: DEBUG: Using selector: EpollSelector >> --------------------- >> end captured logging << --------------------- >> >> ---------------------------------------------------------------------- >> Ran 52 tests in 23.885s >> >> FAILED (errors=3D1) > > 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=3D10" after both "fixes" without problems. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAljihxwACgkQoqBt8qM6 VPpehAgAwVXOTS/3iHcPNBTdBBOH73rmMaFir8aUeqtl6EJkCKrS/zGt1L5gTfGH DIs7ASxufTVN0KP5GlzM1j7FdAP148vfUntS19OTaXuY3fab88k8OEacI+48ZPuJ cQzFVc4b7qwMLzL22hVeg9L47ytXFCAECgzHGalKKzTHmHJEcffERU7XjKlxzAhv SLv+zEuE1ZJPgw7/XM8HVPqUPft7zwTTixPrU2RysWqvp/mx1PmMcg0BPRNSWFTj uGFZe5+djJYQRWLtqzcrbFjDFqYqLpDflinPKthpLlU1sRdmrsqkxxzaPHY2lChg E+QwH5b/cS5AfFLcvkHf6UhzyTbD8Q== =QbSk -----END PGP SIGNATURE----- --=-=-=--