From unknown Sun Jun 22 11:40:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18595: python-tests.el hangs on MS-Windows Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18595 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18595@debbugs.gnu.org Cc: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.14121761942959 (code B ref -1); Wed, 01 Oct 2014 15:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Oct 2014 15:09:54 +0000 Received: from localhost ([127.0.0.1]:57551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLXN-0000lf-5P for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLXK-0000lV-LO for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLXA-0000Y1-D3 for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD, T_MANY_HDRS_LCASE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLXA-0000Xu-AU for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLX2-0006ua-Pu for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:09:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLWr-0000TW-2d for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:09:32 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:59917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLWq-0000TF-MF; Wed, 01 Oct 2014 11:09:21 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NCR00D00TYU3V00@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:09:19 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCR00DNVU3I2V10@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:09:19 +0300 (IDT) Date: Wed, 01 Oct 2014 18:09:15 +0300 From: Eli Zaretskii X-012-Sender: halo1@inter.net.il Message-id: <83ppebkesk.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) When running Emacs tests on MS-Windows, Emacs hangs in python-tests.el if Python is installed. Also, the python-shell-make-comint-3 test fails gratuitously because it compares file names as strings. The patches below fix both of these issues. OK to commit to the trunk (with suitable ChangeLog entries)? --- test/automated/python-tests.el~0 2014-09-04 06:51:35 +0300 +++ test/automated/python-tests.el 2014-10-01 18:04:09 +0300 @@ -1736,7 +1736,8 @@ (should (equal (getenv "PYTHONPATH") (concat (mapconcat 'identity paths path-separator) - path-separator original-pythonpath))))) + (if original-pythonpath path-separator) + original-pythonpath))))) (ert-deftest python-shell-calculate-process-environment-3 () "Test `python-shell-virtualenv-path' modification." @@ -1842,8 +1843,9 @@ (should (process-live-p process)) (with-current-buffer shell-buffer (should (eq major-mode 'inferior-python-mode)) - (should (string= python-shell-interpreter - (executable-find python-tests-shell-interpreter))) + (should (file-equal-p + python-shell-interpreter + (executable-find python-tests-shell-interpreter))) (should (string= python-shell-interpreter-args "-i")))) (kill-buffer shell-buffer)))) @@ -1933,10 +1935,13 @@ "" (let* ((python-shell-interpreter (executable-find python-tests-shell-interpreter)) + (python-cmd (if (eq system-type 'windows-nt) + (concat python-shell-interpreter " -i -u") + python-shell-interpreter)) (use-dialog-box) (dedicated-process-name (python-shell-get-process-name t)) (dedicated-process - (python-shell-get-or-create-process python-shell-interpreter t)) + (python-shell-get-or-create-process python-cmd t)) (dedicated-shell-buffer (process-buffer dedicated-process))) (unwind-protect (progn @@ -1956,10 +1961,13 @@ "" (let* ((python-shell-interpreter (executable-find python-tests-shell-interpreter)) + (python-cmd (if (eq system-type 'windows-nt) + (concat python-shell-interpreter " -i -u") + python-shell-interpreter)) (use-dialog-box) (process-name (python-shell-get-process-name nil)) (process - (python-shell-get-or-create-process python-shell-interpreter)) + (python-shell-get-or-create-process python-cmd)) (shell-buffer (process-buffer process))) (unwind-protect (progn @@ -1978,6 +1986,9 @@ "" (let* ((python-shell-interpreter (executable-find python-tests-shell-interpreter)) + (python-cmd (if (eq system-type 'windows-nt) + (concat python-shell-interpreter " -i -u") + python-shell-interpreter)) (use-dialog-box) (dedicated-process-name (python-shell-get-process-name t)) (global-process) @@ -1985,12 +1996,12 @@ (unwind-protect (progn ;; Create global process - (run-python python-shell-interpreter nil) + (run-python python-cmd nil) (setq global-process (get-buffer-process "*Python*")) (should global-process) (set-process-query-on-exit-flag global-process nil) ;; Create dedicated process - (run-python python-shell-interpreter t) + (run-python python-cmd t) (setq dedicated-process (get-process dedicated-process-name)) (should dedicated-process) (set-process-query-on-exit-flag dedicated-process nil) In GNU Emacs 25.0.50.10 (i686-pc-mingw32) of 2014-10-01 on HOME-C4E4A596F7 Repository revision: 117996 dmantipov@yandex.ru-20141001132108-zdsxru2390mqyjlu Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --prefix=/d/usr --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 78634 6057) (symbols 32 17980 0) (miscs 32 36 97) (strings 16 12838 3605) (string-bytes 1 313631) (vectors 8 9979) (vector-slots 4 389897 2816) (floats 8 64 105) (intervals 28 240 95) (buffers 516 11)) From unknown Sun Jun 22 11:40:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eli Zaretskii Subject: bug#18595: closed (python-tests.el hangs on MS-Windows) Message-ID: References: <87a93ivnjs.fsf@gnu.org> <83ppebkesk.fsf@gnu.org> X-Gnu-PR-Message: they-closed 18595 X-Gnu-PR-Package: emacs Reply-To: 18595@debbugs.gnu.org Date: Sat, 22 Nov 2014 23:12:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1416697922-354-1" This is a multi-part message in MIME format... ------------=_1416697922-354-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18595: python-tests.el hangs on MS-Windows which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18595@debbugs.gnu.org. --=20 18595: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18595 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1416697922-354-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18595-done) by debbugs.gnu.org; 22 Nov 2014 23:11:10 +0000 Received: from localhost ([127.0.0.1]:42085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsJpe-0008WA-1R for submit@debbugs.gnu.org; Sat, 22 Nov 2014 18:11:10 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:50786) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsJpb-0008W0-BG for 18595-done@debbugs.gnu.org; Sat, 22 Nov 2014 18:11:07 -0500 Received: from [190.246.172.180] (port=60995 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XsJpa-000380-Gi for 18595-done@debbugs.gnu.org; Sat, 22 Nov 2014 18:11:06 -0500 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 18595-done@debbugs.gnu.org Subject: python-tests.el hangs on MS-Windows Date: Sat, 22 Nov 2014 20:11:03 -0300 Message-ID: <87a93ivnjs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18595-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Fixed at 238c052 in the emacs-24 branch. Thanks, Fabi=C3=A1n ------------=_1416697922-354-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Oct 2014 15:09:54 +0000 Received: from localhost ([127.0.0.1]:57551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLXN-0000lf-5P for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLXK-0000lV-LO for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLXA-0000Y1-D3 for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD, T_MANY_HDRS_LCASE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLXA-0000Xu-AU for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:09:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLX2-0006ua-Pu for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:09:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLWr-0000TW-2d for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:09:32 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:59917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLWq-0000TF-MF; Wed, 01 Oct 2014 11:09:21 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NCR00D00TYU3V00@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:09:19 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCR00DNVU3I2V10@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:09:19 +0300 (IDT) Date: Wed, 01 Oct 2014 18:09:15 +0300 From: Eli Zaretskii Subject: 25.0.50; python-tests.el hangs on MS-WIndows Subject: python-tests.el hangs on MS-Windows X-012-Sender: halo1@inter.net.il To: bug-gnu-emacs@gnu.org Message-id: <83ppebkesk.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit Cc: =?iso-8859-1?Q?Fabi=E1n?= Ezequiel Gallina X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) When running Emacs tests on MS-Windows, Emacs hangs in python-tests.el if Python is installed. Also, the python-shell-make-comint-3 test fails gratuitously because it compares file names as strings. The patches below fix both of these issues. OK to commit to the trunk (with suitable ChangeLog entries)? --- test/automated/python-tests.el~0 2014-09-04 06:51:35 +0300 +++ test/automated/python-tests.el 2014-10-01 18:04:09 +0300 @@ -1736,7 +1736,8 @@ (should (equal (getenv "PYTHONPATH") (concat (mapconcat 'identity paths path-separator) - path-separator original-pythonpath))))) + (if original-pythonpath path-separator) + original-pythonpath))))) (ert-deftest python-shell-calculate-process-environment-3 () "Test `python-shell-virtualenv-path' modification." @@ -1842,8 +1843,9 @@ (should (process-live-p process)) (with-current-buffer shell-buffer (should (eq major-mode 'inferior-python-mode)) - (should (string= python-shell-interpreter - (executable-find python-tests-shell-interpreter))) + (should (file-equal-p + python-shell-interpreter + (executable-find python-tests-shell-interpreter))) (should (string= python-shell-interpreter-args "-i")))) (kill-buffer shell-buffer)))) @@ -1933,10 +1935,13 @@ "" (let* ((python-shell-interpreter (executable-find python-tests-shell-interpreter)) + (python-cmd (if (eq system-type 'windows-nt) + (concat python-shell-interpreter " -i -u") + python-shell-interpreter)) (use-dialog-box) (dedicated-process-name (python-shell-get-process-name t)) (dedicated-process - (python-shell-get-or-create-process python-shell-interpreter t)) + (python-shell-get-or-create-process python-cmd t)) (dedicated-shell-buffer (process-buffer dedicated-process))) (unwind-protect (progn @@ -1956,10 +1961,13 @@ "" (let* ((python-shell-interpreter (executable-find python-tests-shell-interpreter)) + (python-cmd (if (eq system-type 'windows-nt) + (concat python-shell-interpreter " -i -u") + python-shell-interpreter)) (use-dialog-box) (process-name (python-shell-get-process-name nil)) (process - (python-shell-get-or-create-process python-shell-interpreter)) + (python-shell-get-or-create-process python-cmd)) (shell-buffer (process-buffer process))) (unwind-protect (progn @@ -1978,6 +1986,9 @@ "" (let* ((python-shell-interpreter (executable-find python-tests-shell-interpreter)) + (python-cmd (if (eq system-type 'windows-nt) + (concat python-shell-interpreter " -i -u") + python-shell-interpreter)) (use-dialog-box) (dedicated-process-name (python-shell-get-process-name t)) (global-process) @@ -1985,12 +1996,12 @@ (unwind-protect (progn ;; Create global process - (run-python python-shell-interpreter nil) + (run-python python-cmd nil) (setq global-process (get-buffer-process "*Python*")) (should global-process) (set-process-query-on-exit-flag global-process nil) ;; Create dedicated process - (run-python python-shell-interpreter t) + (run-python python-cmd t) (setq dedicated-process (get-process dedicated-process-name)) (should dedicated-process) (set-process-query-on-exit-flag dedicated-process nil) In GNU Emacs 25.0.50.10 (i686-pc-mingw32) of 2014-10-01 on HOME-C4E4A596F7 Repository revision: 117996 dmantipov@yandex.ru-20141001132108-zdsxru2390mqyjlu Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --prefix=/d/usr --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 78634 6057) (symbols 32 17980 0) (miscs 32 36 97) (strings 16 12838 3605) (string-bytes 1 313631) (vectors 8 9979) (vector-slots 4 389897 2816) (floats 8 64 105) (intervals 28 240 95) (buffers 516 11)) ------------=_1416697922-354-1--