[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#18595: closed (python-tests.el hangs on MS-Windows

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#18595: closed (python-tests.el hangs on MS-Windows)
Date: Sat, 22 Nov 2014 23:12:01 +0000

Your message dated Sat, 22 Nov 2014 20:11:03 -0300
with message-id <address@hidden>
and subject line python-tests.el hangs on MS-Windows
has caused the debbugs.gnu.org bug report #18595,
regarding python-tests.el hangs on MS-Windows
to be marked as done.

(If you believe you have received this mail in error, please contact

18595: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18595
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 25.0.50; python-tests.el hangs on MS-WIndows Subject: python-tests.el hangs on MS-Windows Date: Wed, 01 Oct 2014 18:09:15 +0300
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")
                     (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))
           (dedicated-process-name (python-shell-get-process-name t))
-           (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)))
@@ -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))
           (process-name (python-shell-get-process-name nil))
-           (python-shell-get-or-create-process python-shell-interpreter))
+           (python-shell-get-or-create-process python-cmd))
           (shell-buffer (process-buffer process)))
@@ -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))
           (dedicated-process-name (python-shell-get-process-name t))
@@ -1985,12 +1996,12 @@
            ;; 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 (i686-pc-mingw32)
 of 2014-10-01 on HOME-C4E4A596F7
Repository revision: 117996 address@hidden
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --prefix=/d/usr --enable-checking=yes,glyphs 'CFLAGS=-O0

Configured features:

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 <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

(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))

--- End Message ---
--- Begin Message --- Subject: python-tests.el hangs on MS-Windows Date: Sat, 22 Nov 2014 20:11:03 -0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Fixed at 238c052 in the emacs-24 branch.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]