From: Eli Zaretskii <eliz@gnu.org>
To: npostavs@users.sourceforge.net
Cc: 21376@debbugs.gnu.org
Subject: bug#21376: 25.0.50; Python tests fail on MS-Windows -- issues with the prompt
Date: Wed, 16 Aug 2017 17:26:28 +0300 [thread overview]
Message-ID: <83tw17fv1n.fsf@gnu.org> (raw)
In-Reply-To: <87mv70z3up.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net)
> From: npostavs@users.sourceforge.net
> Cc: 21376@debbugs.gnu.org, fgallina@gnu.org
> Date: Tue, 15 Aug 2017 21:41:18 -0400
>
> > FAILED python-shell-make-comint-4
> > FAILED python-shell-prompt-detect-1
> > FAILED python-shell-prompt-detect-2
> > FAILED python-shell-prompt-set-calculated-regexps-6
> >
> > I show below the relevant portions of python-tests.log.
> >
> > I need help in figuring out what causes these. One possible suspect
> > is some buffering issue, due to which Emacs does not receive the
> > prompt that Python prints. Another possibility might be the version
> > of the Python (I have 2.6.6 installed). Or maybe something else.
>
> It seems to be a bug in Python 2.x on Windows (Python 3.6.x doesn't show
> the problem). In unbuffered mode it rejects carriage returns. Compare
> results of
>
> printf 'print("hello world")\r\n' > hello-world-with-crnl.py
> python -i < hello-world-with-crnl.py
> python -i -u < hello-world-with-crnl.py
>
> printf 'print("hello world")\n' > hello-world-with-nl.py
> python -i < hello-world-with-nl.py
> python -i -u < hello-world-with-nl.py
>
> (Setting the PYTHONUNBUFFERED environment variable, as python.el does,
> is equivalent to passing '-u'.)
>
> The bug can be worked around with the following patch:
Thanks, but after applying the patch I still see the same 4 tests
mentioned above failing. Do I need to do something in addition to
just running the test, as in
cd test && make lisp/progmodes/python-tests.log
?
next prev parent reply other threads:[~2017-08-16 14:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-29 12:21 bug#21376: 25.0.50; Python tests fail on MS-Windows -- issues with the prompt Eli Zaretskii
2015-09-11 7:58 ` Eli Zaretskii
2017-08-16 1:41 ` npostavs
2017-08-16 14:26 ` Eli Zaretskii [this message]
2017-08-16 16:14 ` Noam Postavsky
2017-08-16 16:38 ` Eli Zaretskii
2017-08-16 16:59 ` Noam Postavsky
2017-08-16 17:27 ` Eli Zaretskii
2017-08-20 20:50 ` npostavs
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83tw17fv1n.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=21376@debbugs.gnu.org \
--cc=npostavs@users.sourceforge.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.