From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21376: 25.0.50; Python tests fail on MS-Windows -- issues with the prompt Date: Wed, 16 Aug 2017 19:38:25 +0300 Message-ID: <83k223foxq.fsf@gnu.org> References: <83bndq2slu.fsf@gnu.org> <87mv70z3up.fsf@users.sourceforge.net> <83tw17fv1n.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1502901558 21787 195.159.176.226 (16 Aug 2017 16:39:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 16:39:18 +0000 (UTC) Cc: 21376@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 16 18:39:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di1LZ-0005CQ-QL for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 18:39:09 +0200 Original-Received: from localhost ([::1]:59102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di1Lg-0000Sw-DT for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 12:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di1LV-0000Ql-3k for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di1LR-0007FT-U7 for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1di1LR-0007FL-QS for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:39:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1di1LR-0000iN-Ka for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Aug 2017 16:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 21376-submit@debbugs.gnu.org id=B21376.15029015322731 (code B ref 21376); Wed, 16 Aug 2017 16:39:01 +0000 Original-Received: (at 21376) by debbugs.gnu.org; 16 Aug 2017 16:38:52 +0000 Original-Received: from localhost ([127.0.0.1]:41403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di1LH-0000hy-3D for submit@debbugs.gnu.org; Wed, 16 Aug 2017 12:38:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di1LE-0000hl-Ut for 21376@debbugs.gnu.org; Wed, 16 Aug 2017 12:38:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di1L6-0007Ap-KQ for 21376@debbugs.gnu.org; Wed, 16 Aug 2017 12:38:43 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di1L6-0007Al-GR; Wed, 16 Aug 2017 12:38:40 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2864 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1di1L5-00025T-Ka; Wed, 16 Aug 2017 12:38:40 -0400 In-reply-to: (message from Noam Postavsky on Wed, 16 Aug 2017 12:14:56 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135825 Archived-At: > From: Noam Postavsky > Date: Wed, 16 Aug 2017 12:14:56 -0400 > Cc: 21376@debbugs.gnu.org, Fabián E. Gallina > > On Wed, Aug 16, 2017 at 10:26 AM, Eli Zaretskii 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 "", 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 > >>> Same here, except that Python version is 2.6.6. Also, I needed to replace "python2" with an explicit absolute file name of python.exe, as I don't have "python2" here and Python is not on PATH. But I don't believe these differences are important, are they?