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 17:26:28 +0300 Message-ID: <83tw17fv1n.fsf@gnu.org> References: <83bndq2slu.fsf@gnu.org> <87mv70z3up.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1502893642 26367 195.159.176.226 (16 Aug 2017 14:27:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 14:27:22 +0000 (UTC) Cc: 21376@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 16 16:27:15 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 1dhzHs-0006Gx-I1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 16:27:12 +0200 Original-Received: from localhost ([::1]:50074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhzHy-0005kH-QF for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 10:27:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhzHo-0005iO-J6 for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 10:27:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhzHi-000081-P4 for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 10:27:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhzHi-00007w-Ly for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 10:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dhzHi-0000RU-DK for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 10:27:02 -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 14:27: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.15028936151680 (code B ref 21376); Wed, 16 Aug 2017 14:27:02 +0000 Original-Received: (at 21376) by debbugs.gnu.org; 16 Aug 2017 14:26:55 +0000 Original-Received: from localhost ([127.0.0.1]:41244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhzHb-0000R1-8m for submit@debbugs.gnu.org; Wed, 16 Aug 2017 10:26:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhzHZ-0000Qh-GP for 21376@debbugs.gnu.org; Wed, 16 Aug 2017 10:26:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhzHQ-0008RN-EO for 21376@debbugs.gnu.org; Wed, 16 Aug 2017 10:26:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhzHQ-0008RF-Aq; Wed, 16 Aug 2017 10:26:44 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2701 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dhzHP-0001VY-Mj; Wed, 16 Aug 2017 10:26:44 -0400 In-reply-to: <87mv70z3up.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) 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:135813 Archived-At: > 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 ?