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: Sun, 26 May 2024 21:36:38 +0900 Message-ID: References: <6057C283-20C5-4A91-9CD4-EBA521B8C893@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="17651"; 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 , 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 14:38:14 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 1sBD8f-0004LY-UJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 May 2024 14:38:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBD8N-0007Kb-3B; Sun, 26 May 2024 08:37:55 -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 1sBD8M-0007KP-Iq for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 08:37:54 -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 1sBD8M-0003dw-AR for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 08:37:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBD8T-0000iX-VU for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 08:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: kobarity Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2024 12:38: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.17167270782744 (code B ref 70815); Sun, 26 May 2024 12:38:01 +0000 Original-Received: (at 70815) by debbugs.gnu.org; 26 May 2024 12:37:58 +0000 Original-Received: from localhost ([127.0.0.1]:38555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBD8P-0000iB-S1 for submit@debbugs.gnu.org; Sun, 26 May 2024 08:37:58 -0400 Original-Received: from mail-oo1-f50.google.com ([209.85.161.50]:54487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBD8O-0000hu-1T for 70815@debbugs.gnu.org; Sun, 26 May 2024 08:37:56 -0400 Original-Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-5b52b0d0dfeso3955370eaf.0 for <70815@debbugs.gnu.org>; Sun, 26 May 2024 05:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716727002; x=1717331802; 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=WqzS32BqKjFNUy3rnKUnQPkvvZgbkwl8E/wviOln9us=; b=mTARbIIyjqan7tnRp8Eow+LR8bh4/dwwdPbHvENBMBsSoE2MZ2h118g2EvclcZJMsZ vSrZLaoHRmniBjXyFFDryDUQSslozdglufxlRJbjzVYvdIXtkBm5tCJnvFOT8Ho3WTon cu8Cu/DE6fHpH4NMy2isD+78TaF2LHo8qYVvXsM0VBuDNp1yBerp8Wy398mL9IAXDFwT 0wnG2jihEhhkg6Z5J9nqsBUJGTwOzBNR73xpzhdb3WPmb0jZXTtjzS7VSX40Sj0Dl64R n7/VOpht0UnGGRVy4HfxA+QWvTXB3XzL7lqwNc6Fhf/cqK5oOYSv5QWCHRRnt9DlB5+d jp+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716727002; x=1717331802; 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=WqzS32BqKjFNUy3rnKUnQPkvvZgbkwl8E/wviOln9us=; b=rFfZsT7C1gx6jA6YyQg/mxaa5z7I4hc8dQg1favMPxvCxcEYcdaa07boy+juhcPwao +5k52qTfJU2IOChGr7iFBm60e5kp236uVMEFrI610Ndzn0g23aPWARu4B+yopi4dS16N 1ESCnQki0UmmG5odVwcc4hZ6CdUThoWPC13fEP8J6IHaRmQCdxi4BUqZNCaa+CQd8IB2 vTm27Ia6mKoyi5CAIQRve5TVsegFjI9V4sqb8/CHM9kcYKrk7HO6Orwm5RfYSBkFdm7K jH/DzHQm2XW4Rw4t4N2iQRIbhVMG0HSF2rxW3AJw9dsrIW60qybJPh9LkiIXKpLuctjt xPKw== X-Forwarded-Encrypted: i=1; AJvYcCUAmDJP9eMxsFRhthuLm55zba3tT5PP2kJn7f3fQqkOvb7oCrVvH3egh6u1ihvZz5HpVCHW0zCS44Mh+dhiJ/UWV4t9Dx8= X-Gm-Message-State: AOJu0Yz7tKzMfttHrILqD0H4nZQJmLHmXIcaMslTiRTRmxjXSDwGcdA1 t61Z+hkVETHZeZ5NW/4GTHMyJhRMRgwXxKoNIDV6lXxy2KCRnyi3 X-Google-Smtp-Source: AGHT+IFYVMpDh50dosl4pW4u8y0WNsh1q+xzgqoAn+U4/d/tAjlqZV5mrowcN/8+29seVNFuxBh1yg== X-Received: by 2002:a05:6358:5696:b0:183:b7a0:8aa with SMTP id e5c5f4694b2df-197e50f4f2bmr648513755d.13.1716727001809; Sun, 26 May 2024 05:36:41 -0700 (PDT) Original-Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6822198a7e3sm4234639a12.34.2024.05.26.05.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 05:36:41 -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:285957 Archived-At: Mattias Engdeg=E5rd wrote: >=20 > 26 maj 2024 kl. 14.05 skrev kobarity : >=20 > > All ERTs pass with Python 2 on Linux (Ubuntu 22.04). So it seems to > > me that this is an issue with Python 2 on Mac. Maybe the workaround > > using "tty.setraw(0)" is not working with Python 2 on Mac? Could you > > test if the native completion is working with Python 2? >=20 > Not sure how to test that, but if I run python 2 interactively from a ter= minal then no completion appears to be active (although I'm not sure if som= ething could make it work). Sorry, I forgot that native completion does not work on Mac, even with Python 3. What I wanted to know is if there is unexpected echo backs with Python 2 on Mac. > Given the status of Python 2 in general and on macOS in particular (there= is a warning that it is only present for compatibility with legacy softwar= e) this is not very surprising. I don't think it's something we need to fix= in Emacs. I agree. > Is there a reason not to apply the suggested patch to prefer `python3` to= `python`? > Or put differently, why would `python-shell-interpreter` and `python-test= s-get-shell-interpreter` use different preferences? Maybe it is better to prefer "python3", but I don't know if that would reliably prevent the problem. The best way would be to skip some tests if the selected interpreter is Python 2 and it is running on Mac.