From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky 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 12:14:56 -0400 Message-ID: References: <83bndq2slu.fsf@gnu.org> <87mv70z3up.fsf@users.sourceforge.net> <83tw17fv1n.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1502900178 3371 195.159.176.226 (16 Aug 2017 16:16:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 16:16:18 +0000 (UTC) Cc: 21376@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 16 18:16:14 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 1di0zG-0000DN-HX for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 18:16:06 +0200 Original-Received: from localhost ([::1]:57633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di0zM-00006x-Tg for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 12:16:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di0zG-00005M-QS for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:16:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di0zC-0003Ia-Px for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:16:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60943) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1di0zC-0003IU-MT for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1di0zC-0000Cf-Fr for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Aug 2017 16:16:02 +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.1502900105697 (code B ref 21376); Wed, 16 Aug 2017 16:16:02 +0000 Original-Received: (at 21376) by debbugs.gnu.org; 16 Aug 2017 16:15:05 +0000 Original-Received: from localhost ([127.0.0.1]:41390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di0yG-0000BB-KR for submit@debbugs.gnu.org; Wed, 16 Aug 2017 12:15:04 -0400 Original-Received: from mail-oi0-f45.google.com ([209.85.218.45]:35745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di0yE-0000AP-B3 for 21376@debbugs.gnu.org; Wed, 16 Aug 2017 12:15:02 -0400 Original-Received: by mail-oi0-f45.google.com with SMTP id e124so40952532oig.2 for <21376@debbugs.gnu.org>; Wed, 16 Aug 2017 09:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=curxcEI7kYpWXRX6LGJb2okydtShvKocMZfoMUdnwyg=; b=dKAoInPjLed3MhwFG/8L8rtaJuHS2PGjyxDUqUxDbqyH1iY6MUIpPbteFA0zDgHOyL o112rFXmaxT2imvuKETLuCSTcotG+cHv2dcODECkJ7tby7afiYhHntIY23cHYui8Tjgm L6CybKBq4Q3LZ5biNhZwUyrqxbIc5l7zX9IhQdqH7fhyZypiZyBgPjn/wDZRUINfsmTU 0zsSccujKDfnpmyQhBHruC3/9n7b+r34SvrtfR7gKVVuAM1PdNPAW+FM1l+I7Rw55ZG0 z+87WO4i/efl6LkbJ2Cxwk6vKopcVWILK2FFY+G3RvRL4kUtI5+xtomTtOjDYRKmPy95 RElQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=curxcEI7kYpWXRX6LGJb2okydtShvKocMZfoMUdnwyg=; b=FaN8lvuOdopT6XKcqBzuzLbMkjGFHA2Zmvyv/JyNWewzDzIxVdvwkt+jjlObgBeDlL PV45s0cxCPhbwqDaMhPxDXm3fjhdjbIO9CufpDYgDsOjld1IyS6zbudM96FlmKBq3qhO dnGiuOIebNhkwAVBbNwvHsTrZRzs3OCgkGwzmugJPpxgSY5FiNoqPUbTUwKQ9PTDy/Q4 mXwB9n1YU1Ea1tLj6c0mpMb+EjZMgzuVIhICrW4aSDAZnOzZoevQ1CZkh90hY4AUjPEw iAH1JaZcnPHGNOqqYGAphZMaECdQMIPj7qesMNKRj2ksRNOYcHCsMWFEDEWekr6jooiy 7MIQ== X-Gm-Message-State: AHYfb5gKY30gckKrwGoXlauXEc3/QarRlsKG66yUB3v/F1cRUi21w9QW gHmoI73v6HjEezCvT9eJXvAJyQbHh+AZ X-Received: by 10.202.208.79 with SMTP id h76mr2863856oig.65.1502900096724; Wed, 16 Aug 2017 09:14:56 -0700 (PDT) Original-Received: by 10.74.18.129 with HTTP; Wed, 16 Aug 2017 09:14:56 -0700 (PDT) In-Reply-To: <83tw17fv1n.fsf@gnu.org> X-Google-Sender-Auth: IZ7SmrFODRehRTvnMXJF3ZGbUQQ 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:135824 Archived-At: 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 >>>