From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Eli Zaretskii <eliz@gnu.org>
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 12:14:56 -0400 [thread overview]
Message-ID: <CAM-tV-_5eTLgRnNFRnTxNZSkravC-wfT2_jVZe+o6ips3P73NA@mail.gmail.com> (raw)
In-Reply-To: <83tw17fv1n.fsf@gnu.org>
On Wed, Aug 16, 2017 at 10:26 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> 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
Hmm, that's odd, it works for me. Can you check what the following
expressions insert:
(let ((pyfile (make-temp-file "test" nil ".py")))
(unwind-protect
(progn (let ((inhibit-eol-conversion nil))
(with-temp-file pyfile
(insert "print('hello world')\n")))
(call-process "python2" pyfile '(t t) nil
"-i" "-u"))
(delete-file pyfile)))
(let ((pyfile (make-temp-file "test" nil ".py")))
(unwind-protect
(progn (let ((inhibit-eol-conversion t))
(with-temp-file pyfile
(insert "print('hello world')\n")))
(call-process "python2" pyfile '(t t) nil
"-i" "-u"))
(delete-file pyfile)))
I get this for the first (where ^M is really a carriage return character)
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40)
[MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> File "<stdin>", line 1
print('hello world')^M
^
SyntaxError: invalid syntax
>>>
and this for the second:
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40)
[MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> hello world
>>>
next prev parent reply other threads:[~2017-08-16 16:14 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
2017-08-16 16:14 ` Noam Postavsky [this message]
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=CAM-tV-_5eTLgRnNFRnTxNZSkravC-wfT2_jVZe+o6ips3P73NA@mail.gmail.com \
--to=npostavs@users.sourceforge.net \
--cc=21376@debbugs.gnu.org \
--cc=eliz@gnu.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 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.