From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters Date: Sun, 26 May 2024 18:36:43 +0300 Message-ID: <86jzjgwpo4.fsf@gnu.org> References: <6057C283-20C5-4A91-9CD4-EBA521B8C893@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6748"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kobarity@gmail.com, sunlin7.mail@gmail.com, stefankangas@gmail.com, 70815@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 26 17:40:01 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sBFya-0001To-MO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 May 2024 17:40:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBFyW-0003wY-G6; Sun, 26 May 2024 11:39:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBFyT-0003v1-Nb for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 11:39:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBFyT-00059T-Fh for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 11:39:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBFyb-0006L9-KQ for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 11:40: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: Sun, 26 May 2024 15:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70815 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70815-submit@debbugs.gnu.org id=B70815.171673795324302 (code B ref 70815); Sun, 26 May 2024 15:40:01 +0000 Original-Received: (at 70815) by debbugs.gnu.org; 26 May 2024 15:39:13 +0000 Original-Received: from localhost ([127.0.0.1]:42301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBFxp-0006Jt-3C for submit@debbugs.gnu.org; Sun, 26 May 2024 11:39:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBFxm-0006Jf-9H for 70815@debbugs.gnu.org; Sun, 26 May 2024 11:39:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBFvS-0004kf-J1; Sun, 26 May 2024 11:36:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=X9pzHD9iWeZv/xT4FaReOmuZ9++lqKazWrplxFnOcc4=; b=QUw3xuDRJxJND0ENIdsb WW33GGYQoXezX9/oQTlqBQXhsn5YEcYRB/IVQDic7CT6o4488KTUaNuuXKWnOMVrUnEw1g8vqI+2Y AUQASjJug3arBne4OVA2ujVje7OXGiI+3YSoMMBIwTk0rT3+vvNDjW5hgIdCFlYRJ+9e6st4l2oug T1OUSknL2LtG7ZQHBbJqncp0Grs0VA1+MxOm1N/lY2lzNqG/Wiyl6Y9epVUsMFIalsDClSjhL+k5s tiISQEJfel14I1Jn9n/iyj/b1IqR6RTEa0qXXFz/Ta4I6g07IevzGRTHUvDxRSHLu0oOGJLhy0/rY YGoIv9iDIN2hlA==; In-Reply-To: <6057C283-20C5-4A91-9CD4-EBA521B8C893@gmail.com> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Sun, 26 May 2024 12:52:54 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285975 Archived-At: > From: Mattias EngdegÄrd > Date: Sun, 26 May 2024 12:52:54 +0200 > Cc: Lin Sun , > stefankangas@gmail.com, > 70815@debbugs.gnu.org, > Eli Zaretskii > > This change caused python-tests failures on macOS. See attached log. > > On this machine which has the standard macOS Python installation, 'python' is python 2, which apparently the tests don't cope very well with. (Have you verified that they do?) > > The tests pass if modified to prefer Python 3: > > @@ -3722,2 +3722,2 @@ python-tests-get-shell-interpreter > - (cl-some #'executable-find '("python" "python3" "python2")))))) > + (cl-some #'executable-find '("python3" "python" "python2")))))) I don't like this preference. It is basically wrong, because it second-guesses what Python is _the_ Python on the user's machine. Let's try to find another solution. If worse comes to worst, we could make a change specific to macOS, but I hope we won't need to.