From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: kobarity Newsgroups: gmane.emacs.bugs Subject: bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters Date: Mon, 03 Jun 2024 23:34:16 +0900 Message-ID: References: <6057C283-20C5-4A91-9CD4-EBA521B8C893@gmail.com> <7CF65AE1-B3AC-40C5-AC82-CE575E5E1831@gmail.com> <86h6ekwoxb.fsf@gnu.org> <7440E11E-25EF-44C4-A2D8-7F95C2C20466@gmail.com> <3D254E7C-5F1D-4F93-84AB-26FA0BD880D4@gmail.com> <66149F45-F722-4FF8-B99D-72E338BDF6CB@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21560"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: Eli Zaretskii , Lin Sun , Stefan Kangas , 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 Mon Jun 03 16:36:13 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 1sE8nE-0005Ra-Lf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jun 2024 16:36:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sE8mv-0002J7-AR; Mon, 03 Jun 2024 10:35:53 -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 1sE8ms-0002Ic-MA for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 10:35:51 -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 1sE8mr-0005ul-Lw for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 10:35:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sE8n4-0005xH-9P for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: kobarity Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2024 14:36:02 +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.171742534622865 (code B ref 70815); Mon, 03 Jun 2024 14:36:02 +0000 Original-Received: (at 70815) by debbugs.gnu.org; 3 Jun 2024 14:35:46 +0000 Original-Received: from localhost ([127.0.0.1]:42156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE8mo-0005wi-5I for submit@debbugs.gnu.org; Mon, 03 Jun 2024 10:35:46 -0400 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:58701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE8mi-0005wN-7m for 70815@debbugs.gnu.org; Mon, 03 Jun 2024 10:35:44 -0400 Original-Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-7024426c75dso2730039b3a.1 for <70815@debbugs.gnu.org>; Mon, 03 Jun 2024 07:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717425261; x=1718030061; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=NI0LO/ij7Co0Q3WfeRzoRLvsUeZvJl0tcSzpICpn6CM=; b=At/0C4xftb/4qrFXrC2HnQpxQ50b9wovSDHSBk+Pkb2uQyMRuT1d0wLCOLJaSt9guf VY7J5uqnryqiyfK5xJEGLgpw+LANjonhPNng5rNRFGY3Ur7cdZ8uf/ZCwwpCXnMKPBgd 943vaduYsPhXMVsYhSS/EdqDgJCmjqQjKWsFPrsSGpsyT9U710j2Gehhh1WcmzQwwiVf 7QzboQtwHzQKWNrQLyh1tGDca/dH5EKZpWtGJ9ADrQkBF1n4kep+hPLhQL6T9dX0Y0iT rtZOjsHgrhze4NONlTp1J2DE3P9SF/Epo6vAYAcaOEdASZ/5TWmoUXOUMcrkFV3byFLZ H/ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717425261; x=1718030061; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NI0LO/ij7Co0Q3WfeRzoRLvsUeZvJl0tcSzpICpn6CM=; b=nYWBiL5txMBddoNkceBaY7s+qRB0PKSw2BCBE8DWEuyJc/rJhoy4bzkHKFQZ/yT3s8 q9RXnmjHSY9cqE1H1043h4a/kHchEIhDTnb9aYnUDc9Ds3qInoY45Ug+9irwlh60/sCG USf555bLqCLpjyDfU2yLSMGZHQH46SIgEIG1bYLU+bzw2xWau2fE9wfOKt8ebSBovDPh mcNFOPrlbmrsxkG1EGVeJvjGpWzdWN9y+ztNpmd/arlP6m2a7uzxT7WuwTYajJhD5GsY frMurq2//WG7T6KEXyR8HOEzL1zOtwOIpJdbJgOFDAdVKA+pXA3MrozKHxSq3vLCn2kk R53g== X-Forwarded-Encrypted: i=1; AJvYcCXUZjoEZSC1nbguiXMsDsbUWFPDSmfqtjrt95Gwh8ZwznamV3xrFW21N4oA3Ogw5AhI5P0lGzlhPuiz9M2ydEAjiy5jw4c= X-Gm-Message-State: AOJu0Yy/P1CTu8RNVww4ShXvSNLv+U16TghxE4pxjcaqfkXIz0cMniFD HPWFxX8PFG9o8DPyZSocmpMhCrM7GNRzFNPXdKfOol2JaNuRtAdE X-Google-Smtp-Source: AGHT+IGgg1EEM269XJYEAwKudvhFFi5aOGro0v9rQKi2OusEt4b2iO+4e+OBgbjCN3fCIaqD7y91LQ== X-Received: by 2002:a05:6a00:98a:b0:702:3a47:2b1b with SMTP id d2e1a72fcca58-7024780ceefmr13961637b3a.20.1717425260819; Mon, 03 Jun 2024 07:34:20 -0700 (PDT) Original-Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-702423c7b49sm5549318b3a.37.2024.06.03.07.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 07:34:20 -0700 (PDT) In-Reply-To: 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:286445 Archived-At: Mattias Engdeg=E5rd wrote: > 2 juni 2024 kl. 15.20 skrev kobarity : > > 1. Set EMACS_PYTHON_INTERPRETER environment variable to "python" and > > run ERTs. The expectation is that the 7 ERTs that previously > > resulted in errors will be skipped. >=20 > With EMACS_PYTHON_INTERPRETER=3Dpython3 or unset >=20 > SKIPPED python-shell-completion-at-point-ipython > SKIPPED python-shell-completion-at-point-jedi-completer >=20 > With EMACS_PYTHON_INTERPRETER=3Dpython >=20 > SKIPPED python-completion-at-point-1 > SKIPPED python-completion-at-point-2 > SKIPPED python-completion-at-point-native-1 > SKIPPED python-completion-at-point-native-2 > SKIPPED python-completion-at-point-native-with-eldoc-1 > SKIPPED python-completion-at-point-native-with-ffap-1 > SKIPPED python-shell-completion-at-point-1 > SKIPPED python-shell-completion-at-point-ipython > SKIPPED python-shell-completion-at-point-jedi-completer Thanks, this is as expected. > > 2. Revert 9c7de10079 and run ERTs. The expectation is that the 7 ERTs > > that previously failed will succeed. >=20 > No, they still fail: >=20 > 7 unexpected results: > FAILED python-completion-at-point-1 > FAILED python-completion-at-point-2 > FAILED python-completion-at-point-native-1 > FAILED python-completion-at-point-native-2 > FAILED python-completion-at-point-native-with-eldoc-1 > FAILED python-completion-at-point-native-with-ffap-1 > FAILED python-shell-completion-at-point-1 >=20 > 2 skipped results: > SKIPPED python-shell-completion-at-point-ipython > SKIPPED python-shell-completion-at-point-jedi-completer Maybe I did not make the right request. What I wanted you to try was to make the following changes after applying my patch in the previous email. diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/pyth= on-tests.el index 970ec32bc0c..77b30f8bdbc 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el @@ -3770,7 +3770,7 @@ python-tests-get-shell-interpreter ;; Use the same order as for the default value of ;; `python-shell-interpreter'. (delq nil (mapcar #'python-tests--get-interpreter-info - '("python3" "python" "python2")))))) + '("python" "python3" "python2")))))) (cl-some (or pred #'car) python-tests-shell-interpreters)) (defun python-tests--get-interpreter-info (name) If you have tried it this way, could you tell me what the value of `python-tests-shell-interpreters' is? > > Apple seems to have removed Python 2 in 2022 MacOS 12.3. Is your > > Python 2 installed with brew or something else? Or is it an old Apple > > one? >=20 > It's the standard setup of an older version of macOS (the hardware of tha= t machine can't run 12.3). I understood.