GNU bug report logs - #70578
[PATCH] ; Fix python test case for testing completion with ipython

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Lin Sun <sunlin7.mail@HIDDEN>; Keywords: patch; dated Fri, 26 Apr 2024 03:29:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 70578 <at> debbugs.gnu.org:


Received: (at 70578) by debbugs.gnu.org; 29 Apr 2024 15:36:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 29 11:36:55 2024
Received: from localhost ([127.0.0.1]:57874 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s1T3n-0004H6-E6
	for submit <at> debbugs.gnu.org; Mon, 29 Apr 2024 11:36:55 -0400
Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:43353)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7.mail@HIDDEN>) id 1s1T3l-0004H0-FR
 for 70578 <at> debbugs.gnu.org; Mon, 29 Apr 2024 11:36:54 -0400
Received: by mail-ed1-x536.google.com with SMTP id
 4fb4d7f45d1cf-5724f26b8c9so6204140a12.1
 for <70578 <at> debbugs.gnu.org>; Mon, 29 Apr 2024 08:36:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714404987; x=1715009787; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=yROcN6YOfxNug4ukGGBnBmD7mnDL2kQwpxoFy5sEzas=;
 b=jBGwVJKKqXMXrnMgGvupS8CIFU0Rtfo6ibhjWoFkkHAYMJKHqDDs3WFYOGdlWdbWFS
 VR38SJmDlnIh02aC2/AgWT5ZMheZ8vni9JZviMVNYDMbNhUrIcwwDMpS9xL7kc7ksrTz
 7vCzNUAhtRFy0BtaCKrUOknsLuIu9Qw/GfV7qEwhP/KNnXLcsGUaSumN8CFJz2fEsRov
 uLjF3BO8nN6iHBoet+8vt5Z0DrHKEgARnenGKlLV4KyY9ODgjLiAHKGlimgh8mwqxNJw
 M9HNpNugnGNijIKJ3EkUiW9+S2yqruuUa3Q/GVxr7CiUOO+0Djf/rYDOf/QEVpXRvy1U
 3mLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714404987; x=1715009787;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=yROcN6YOfxNug4ukGGBnBmD7mnDL2kQwpxoFy5sEzas=;
 b=YzmbeUZMQeFepObvE2gSfVtJjOkYzcKxWMxEoV6JReuOhwTR/uqG962yXR8EbN0ZI7
 9IH5Ypodvr+FSF4yU/8trFt37hLy51HpyY6FBnBYJ+In1e/rdNb2plR5n1o5PC18EV7n
 Ykwp6D/CPqlH3N1YY28aNfOAZeEzjb6l2RRaTUO2UDr7tU13Cqze6jftbFpZJtmMM0Qm
 Y4JFuFbpP5X/9ujZu+IFfbswDIJy2m/WJYFG4rUIxN/ziN2pexhXL/PBmxj74GxbH6Xl
 ENn8LY1uJBQjMgaCGzIosApAl5U4lSqax+DVK2VSnhpxLo4CIn4/9bIJ0wRiqpdHkmEV
 K6pw==
X-Forwarded-Encrypted: i=1;
 AJvYcCXUKkw+p1jFscQkWa2x+h/VGuGOBDuV+d62CKJffWeRUa7nvPL53DDXfPRtp9rDwhf0RQOVgAfmVf+tp5Fw5fNwH+sEPhI=
X-Gm-Message-State: AOJu0YzGEw6xbvYewnzEGsRF/1rpY6xq91tYhGYEvZHmABT6CDYWic0U
 BSOqDA4Me+O32n8NZG40IZMq/5iHYQRyWUu9+aaum5U9bSJvsG9thmCMHgAMJBPASSF2L8thmhF
 nx9mz0WmhBEwEsLCXjL9hwengtko=
X-Google-Smtp-Source: AGHT+IHHVCwenQtLfaw3Qef53meMSUGHllvIyKWopkAPUkVqoY+kmNS0DTFAjcJv0lKvldBRENGGj812UqBmlNC1oS4=
X-Received: by 2002:a50:d792:0:b0:56e:2c34:cff2 with SMTP id
 w18-20020a50d792000000b0056e2c34cff2mr10675492edi.19.1714404987423; Mon, 29
 Apr 2024 08:36:27 -0700 (PDT)
MIME-Version: 1.0
References: <CABCREdptK5LGo-+QVbpbehz9BEX8tJy=piPOiH=NSQv-Lm=8kA@HIDDEN>
 <867cgjw2qv.fsf@HIDDEN> <eke78r0zf1mn.wl-kobarity@HIDDEN>
In-Reply-To: <eke78r0zf1mn.wl-kobarity@HIDDEN>
From: Lin Sun <sunlin7.mail@HIDDEN>
Date: Mon, 29 Apr 2024 15:36:16 +0000
Message-ID: <CABCREdq8M4Kzcu5qcX4NJyncPN3yNi1cMRTot9cnK8LVGuX-LA@HIDDEN>
Subject: Re: bug#70578: [PATCH] ; Fix python test case for testing completion
 with ipython
To: kobarity <kobarity@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70578
Cc: Liu Hui <liuhui1610@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 70578 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat, Apr 27, 2024 at 12:10=E2=80=AFPM kobarity <kobarity@HIDDEN> wrot=
e:
>
>
> Eli Zaretskii wrote:
> >
> > > From: Lin Sun <sunlin7.mail@HIDDEN>
> > > Date: Fri, 26 Apr 2024 03:27:34 +0000
> > >
> > > There is an error when running python-tests.el, I pasted on the tail
> > > of this mail.
> > >
> > > The error is caused by the test case trying testing the functions wit=
h
> > > ipython but its subroutine didn't use the ipython as interpreter.
> > >
> > > Changing the test interpreter will fix the issue, I attached the patc=
h.
> > >
> > > Please help apply the change. Thanks.
> > >
> > >
> > > Test case error message:
> > >
> > > Test python-shell-completion-at-point-ipython backtrace:
> > >   call-process("python" nil t nil "-m" "jedi" "repl")
> > >   (eql 0 (call-process python-tests-shell-interpreter nil t nil "-m" =
"
> > >   (if (eql 0 (call-process python-tests-shell-interpreter nil t nil "=
-
> > > ...
> > > Test python-shell-completion-at-point-ipython condition:
> > >     (file-missing "Searching for program" "No such file or directory"
> > >                   "python")
> > >    FAILED  1/1  python-shell-completion-at-point-ipython (0.829918
> > > sec) at python-tests.el:4897
> >
> > Thanks.
> >
> > kobarity, any comments about this or the patch?
>
> I confirmed that Lin Sun's patch fixes this issue.  I Cc'd the author
> of this ERT as well, just in case.

Thanks for confirmation, look forward to the merging happening.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70578; Package emacs. Full text available.

Message received at 70578 <at> debbugs.gnu.org:


Received: (at 70578) by debbugs.gnu.org; 27 Apr 2024 12:10:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 27 08:10:30 2024
Received: from localhost ([127.0.0.1]:39099 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0gsv-0007nl-RE
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2024 08:10:30 -0400
Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:56513)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kobarity@HIDDEN>) id 1s0gsr-0007lq-F2
 for 70578 <at> debbugs.gnu.org; Sat, 27 Apr 2024 08:10:27 -0400
Received: by mail-pf1-x436.google.com with SMTP id
 d2e1a72fcca58-6f074520c8cso3029881b3a.0
 for <70578 <at> debbugs.gnu.org>; Sat, 27 Apr 2024 05:10:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714219800; x=1714824600; darn=debbugs.gnu.org;
 h=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=nOly1SHet5SeDlA7TYT+7KvH0CX1rHAMhmgJ9hm2nRI=;
 b=k7IWNJHAzzOAxJKu+TTfONLF8FlO2XBeujSRI1obgjc/X+rHOFseThG6MazZfb5K5x
 kR42SfJiz/iWf0o7/FKfNVI/T6jYpE6FKSO8aBG4HZPdN8N/SbiE2MDfzVJEAt6N9Qj+
 7LjLZ52yFlpbdIYXagJEZS0RTA8ig5K8bCk8wqOgRgHAVrkTgtwBsmBlC5MnhO8H7/kN
 q77KrK5U4BUW10C2UOMgKQ7GrYVS83+lQYdURrpmPeNYS1LjRCG8fe/ecdqe/09tQ/eO
 PpfoRwIfxMIlrxJjOw5JvOKkUcoLE6/ahUoFGk4ge6px+xcoT9YeTevY7INLfVMsYYDU
 WFYg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714219800; x=1714824600;
 h=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=nOly1SHet5SeDlA7TYT+7KvH0CX1rHAMhmgJ9hm2nRI=;
 b=cry9c/2dQIqPWFgkbIxiHlvaTc5Rik3BfiHXoCjc3uDAXlncjDh/iGwYw+kXhOCCol
 yHd1KE+fpi36iNDMhNSV0WfaRGligSVb8BV2+ZswKgBvYFyx2yjk2rtBZoc9pTqBr6Is
 jzwEvng1TKvxV8BRFLIMLXg2QHLr+oyXySndrC7vhgeDYihGEOhdesMGu8E4/3ys8dds
 bqpPFnJPPnzfh2zSp0Q2fG31nZqbMkxXZGtnPsaufzobHkdC4VbZ4W/x3BL5ifEgW2yy
 vARHryIXMBbDRMWbYcDGM72ddD7EdRkBWBnFpRZwDHERJFVf5sPr8xskSfpJig6KRvdq
 dYsw==
X-Forwarded-Encrypted: i=1;
 AJvYcCVWUoXZ8tLn1GzkfSd6q2XFCI4DqkD6EEbiBSoUC3u+6ApOt8z4SJXsNJcwbLalgQawhJ+NZhbTvAveemzELPcnyj6/lyk=
X-Gm-Message-State: AOJu0Yyy98gJXRTY6C/+ImE3v5e/7svgEEdwcc7/63F6no7JLVzsxkNt
 WSI+nGKpZYsyPjd+PdPCRpvi36wl5tF8aNiuVM5vqJ2lG2xnbla+
X-Google-Smtp-Source: AGHT+IHd3W7nEr26VYsVpsTgkT+aevGocqfFY/779a71r6D0SJD3eND/hygA/Vnibji/G7UoPWfaag==
X-Received: by 2002:a05:6a20:3d8f:b0:1a9:a898:8da6 with SMTP id
 s15-20020a056a203d8f00b001a9a8988da6mr6564025pzi.48.1714219800495; 
 Sat, 27 Apr 2024 05:10:00 -0700 (PDT)
Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161])
 by smtp.gmail.com with ESMTPSA id
 fj24-20020a056a003a1800b006ea916eac02sm16292377pfb.42.2024.04.27.05.09.58
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 27 Apr 2024 05:09:59 -0700 (PDT)
Date: Sat, 27 Apr 2024 21:09:36 +0900
Message-ID: <eke78r0zf1mn.wl-kobarity@HIDDEN>
From: kobarity <kobarity@HIDDEN>
To: Lin Sun <sunlin7.mail@HIDDEN>,
	Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70578: [PATCH] ;
 Fix python test case for testing completion with ipython
In-Reply-To: <867cgjw2qv.fsf@HIDDEN>
References: <CABCREdptK5LGo-+QVbpbehz9BEX8tJy=piPOiH=NSQv-Lm=8kA@HIDDEN>
 <867cgjw2qv.fsf@HIDDEN>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
 FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0
 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70578
Cc: Liu Hui <liuhui1610@HIDDEN>, 70578 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Eli Zaretskii wrote:
> 
> > From: Lin Sun <sunlin7.mail@HIDDEN>
> > Date: Fri, 26 Apr 2024 03:27:34 +0000
> > 
> > There is an error when running python-tests.el, I pasted on the tail
> > of this mail.
> > 
> > The error is caused by the test case trying testing the functions with
> > ipython but its subroutine didn't use the ipython as interpreter.
> > 
> > Changing the test interpreter will fix the issue, I attached the patch.
> > 
> > Please help apply the change. Thanks.
> > 
> > 
> > Test case error message:
> > 
> > Test python-shell-completion-at-point-ipython backtrace:
> >   call-process("python" nil t nil "-m" "jedi" "repl")
> >   (eql 0 (call-process python-tests-shell-interpreter nil t nil "-m" "
> >   (if (eql 0 (call-process python-tests-shell-interpreter nil t nil "-
> > ...
> > Test python-shell-completion-at-point-ipython condition:
> >     (file-missing "Searching for program" "No such file or directory"
> >                   "python")
> >    FAILED  1/1  python-shell-completion-at-point-ipython (0.829918
> > sec) at python-tests.el:4897
> 
> Thanks.
> 
> kobarity, any comments about this or the patch?

I confirmed that Lin Sun's patch fixes this issue.  I Cc'd the author
of this ERT as well, just in case.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70578; Package emacs. Full text available.

Message received at 70578 <at> debbugs.gnu.org:


Received: (at 70578) by debbugs.gnu.org; 27 Apr 2024 09:54:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 27 05:54:07 2024
Received: from localhost ([127.0.0.1]:38973 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0ekt-0005Nl-NO
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2024 05:54:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36674)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s0ekl-0005LD-UO
 for 70578 <at> debbugs.gnu.org; Sat, 27 Apr 2024 05:54:00 -0400
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 <eliz@HIDDEN>)
 id 1s0ekN-0000y3-Ke; Sat, 27 Apr 2024 05:53:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=B0im1rkzEbOYm718jpEMt5OByh3uDf3+r8NvT+vMPAs=; b=gDB0fn6L9F9B
 UNJNXtOU1uRSaAa78kGOOClmuX8l0IDSuuPj1PaSQe1aHqCmDIM9/xfbrW/0K88uK8iMW4vV9qXUM
 3NCjm5Kqa8nkzEVkeYYO9WFAHXatVexKxxTH2hWdjtWP+eluYCa7zfXrW++LwCqkEZJUEgvbAzmhC
 fRQIggETQ4ZJqGWoowJ9IgId2qfmEdFgSr3krg1+En0fTemEhH3ln2FMSF1fQceVAlzMwNgmvHNqY
 dnJNcB67D+44BqDJWG9xDpQSL8DaPmTZaTK9RoJSFNj4brkmGnfP82K7RExomp7pykzhcxgmAfK5Y
 dLf+1D5vqqxhhT3Liup6GA==;
Date: Sat, 27 Apr 2024 12:53:28 +0300
Message-Id: <867cgjw2qv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lin Sun <sunlin7.mail@HIDDEN>, kobarity <kobarity@HIDDEN>
In-Reply-To: <CABCREdptK5LGo-+QVbpbehz9BEX8tJy=piPOiH=NSQv-Lm=8kA@HIDDEN>
 (message from Lin Sun on Fri, 26 Apr 2024 03:27:34 +0000)
Subject: Re: bug#70578: [PATCH] ;
 Fix python test case for testing completion with ipython
References: <CABCREdptK5LGo-+QVbpbehz9BEX8tJy=piPOiH=NSQv-Lm=8kA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70578
Cc: 70578 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lin Sun <sunlin7.mail@HIDDEN>
> Date: Fri, 26 Apr 2024 03:27:34 +0000
> 
> There is an error when running python-tests.el, I pasted on the tail
> of this mail.
> 
> The error is caused by the test case trying testing the functions with
> ipython but its subroutine didn't use the ipython as interpreter.
> 
> Changing the test interpreter will fix the issue, I attached the patch.
> 
> Please help apply the change. Thanks.
> 
> 
> Test case error message:
> 
> Test python-shell-completion-at-point-ipython backtrace:
>   call-process("python" nil t nil "-m" "jedi" "repl")
>   (eql 0 (call-process python-tests-shell-interpreter nil t nil "-m" "
>   (if (eql 0 (call-process python-tests-shell-interpreter nil t nil "-
> ...
> Test python-shell-completion-at-point-ipython condition:
>     (file-missing "Searching for program" "No such file or directory"
>                   "python")
>    FAILED  1/1  python-shell-completion-at-point-ipython (0.829918
> sec) at python-tests.el:4897

Thanks.

kobarity, any comments about this or the patch?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70578; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Apr 2024 03:28:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 25 23:28:20 2024
Received: from localhost ([127.0.0.1]:33534 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0CG1-0001RG-Ft
	for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 23:28:19 -0400
Received: from lists.gnu.org ([2001:470:142::17]:39000)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7.mail@HIDDEN>) id 1s0CFy-0001PM-0q
 for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 23:28:15 -0400
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 <sunlin7.mail@HIDDEN>)
 id 1s0CFa-0003ET-12
 for bug-gnu-emacs@HIDDEN; Thu, 25 Apr 2024 23:27:50 -0400
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <sunlin7.mail@HIDDEN>)
 id 1s0CFY-0007un-Dw
 for bug-gnu-emacs@HIDDEN; Thu, 25 Apr 2024 23:27:49 -0400
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-572229f196cso1942955a12.2
 for <bug-gnu-emacs@HIDDEN>; Thu, 25 Apr 2024 20:27:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714102065; x=1714706865; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=yMDERA5dFHufRWDCGPbQ9c9TkIxyItmUEg8MbhBzOHI=;
 b=jBPDS1YBPicHKB/7oq/8fnvhGsqOK9rBId4jNdqrd7L2L+E0M606vSM8pxgw2KC1U1
 WC9Ml+ZUGRKwTLOd6O974ejSkybAC03so8wUXqsXjVhQUVJZlHLf0kqUFtYyPpK/EMKj
 h7+fXLxxQmyy1Pj3Rd2tiuQKa3KkVFZsvn0QRWbS5fQg1m7ksE4DmRVE2JoxwMp+E/Gx
 7bnRMidPHlTrvFYUesv2duPNYL5KsQRniHpCdDXxYNnnHhRCKS7v249AwqW6FjX6RAMs
 VJVmq8lT7OkJkQh5pHPiTISUAYv/G3TA0pq8Ia3DR4gHC7bYFjCaIiuePoij4SguOgWb
 bv+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714102065; x=1714706865;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=yMDERA5dFHufRWDCGPbQ9c9TkIxyItmUEg8MbhBzOHI=;
 b=UeTYbU7vobiOtfOuysycIIGLorI2AGwV3R+/Ai+eSQJQpG80O7CqD3tjHaf3+dguru
 8GYdMiqBp1AGQDKHZmVLLH0KEFNgzZDk9XcYMJbCrkd8vnDKmtacv6k36rekbsr0p6lx
 2CnAaO9+BVsBKhnrE7VxwwEBGgc2/GORaTDMKhupPrHu3XJqWKlPh6OEutmlLVQ9Looh
 G3Amn3KWPI2GS9bU9bhzl67B/pA5hmfJePetL/7RQxOmF4EwIt6Go7vfUGFQEL+4yHVI
 99cLKCmdefhGytHAuX/MFPFWxCmDeSE/YEGIPuV80/l9WfkJur6a5ixx1Ynp6aaa5FJA
 4Kfw==
X-Gm-Message-State: AOJu0YyakQK5a8qTLX8pU5dsTfsJCV12nbWRvctkPgyeOFQJih1psYdu
 MiVTMLsQN9NFmTTX6gtZUq6lBkpT+mngRzGfDTdSYS7zT0gN4TeGaDBsnToIPkZcZ1mlAG1BNBh
 ztxNI+AJqef0dDDu2atpJIowpz2wNwwL9
X-Google-Smtp-Source: AGHT+IE068B+lbFj3QdheLZ+3XcI4Q/RmMjGbsQUJu3RxnjSpbnfpbnRci6npkHl9+BYRHz4FZDHpog+EyrRZz7UP8I=
X-Received: by 2002:a50:99d6:0:b0:570:5b3c:443 with SMTP id
 n22-20020a5099d6000000b005705b3c0443mr880842edb.7.1714102065133; Thu, 25 Apr
 2024 20:27:45 -0700 (PDT)
MIME-Version: 1.0
From: Lin Sun <sunlin7.mail@HIDDEN>
Date: Fri, 26 Apr 2024 03:27:34 +0000
Message-ID: <CABCREdptK5LGo-+QVbpbehz9BEX8tJy=piPOiH=NSQv-Lm=8kA@HIDDEN>
Subject: [PATCH] ; Fix python test case for testing completion with ipython
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/mixed; boundary="000000000000b39bab0616f77c76"
Received-SPF: pass client-ip=2a00:1450:4864:20::52a;
 envelope-from=sunlin7.mail@HIDDEN; helo=mail-ed1-x52a.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--000000000000b39bab0616f77c76
Content-Type: text/plain; charset="UTF-8"

Hi,
There is an error when running python-tests.el, I pasted on the tail
of this mail.

The error is caused by the test case trying testing the functions with
ipython but its subroutine didn't use the ipython as interpreter.

Changing the test interpreter will fix the issue, I attached the patch.

Please help apply the change. Thanks.


Test case error message:

Test python-shell-completion-at-point-ipython backtrace:
  call-process("python" nil t nil "-m" "jedi" "repl")
  (eql 0 (call-process python-tests-shell-interpreter nil t nil "-m" "
  (if (eql 0 (call-process python-tests-shell-interpreter nil t nil "-
...
Test python-shell-completion-at-point-ipython condition:
    (file-missing "Searching for program" "No such file or directory"
                  "python")
   FAILED  1/1  python-shell-completion-at-point-ipython (0.829918
sec) at python-tests.el:4897

--000000000000b39bab0616f77c76
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-Fix-python-test-case-for-testing-completion-with-ipy.patch"
Content-Disposition: attachment; 
	filename="0001-Fix-python-test-case-for-testing-completion-with-ipy.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lvg43gv60>
X-Attachment-Id: f_lvg43gv60

RnJvbSBjYThkNWZiNmM4ZDg1OTFjMjBlYzk5ZTAwZTdlNjNmZDJjOWQxMTUxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBU
aHUsIDI1IEFwciAyMDI0IDA2OjU0OjI3ICswMDAwClN1YmplY3Q6IFtQQVRDSF0gOyBGaXggcHl0
aG9uIHRlc3QgY2FzZSBmb3IgdGVzdGluZyBjb21wbGV0aW9uIHdpdGggaXB5dGhvbgoKKiB0ZXN0
L2xpc3AvcHJvZ21vZGVzL3B5dGhvbi10ZXN0cy5lbAoocHl0aG9uLXNoZWxsLWNvbXBsZXRpb24t
YXQtcG9pbnQtaXB5dGhvbik6IEZpeCB0aGUgcHl0aG9uIGludGVycHJldGVyCmlzIGluY29ycmVj
dCBpbiB0aGUgc3Vicm91dGluZS4KLS0tCiB0ZXN0L2xpc3AvcHJvZ21vZGVzL3B5dGhvbi10ZXN0
cy5lbCB8IDMgKystCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9u
KC0pCgpkaWZmIC0tZ2l0IGEvdGVzdC9saXNwL3Byb2dtb2Rlcy9weXRob24tdGVzdHMuZWwgYi90
ZXN0L2xpc3AvcHJvZ21vZGVzL3B5dGhvbi10ZXN0cy5lbAppbmRleCBlMTE0NDBjZGI1Yi4uZTZl
NmUwNWJiZWYgMTAwNjQ0Ci0tLSBhL3Rlc3QvbGlzcC9wcm9nbW9kZXMvcHl0aG9uLXRlc3RzLmVs
CisrKyBiL3Rlc3QvbGlzcC9wcm9nbW9kZXMvcHl0aG9uLXRlc3RzLmVsCkBAIC00ODk2LDcgKzQ4
OTYsOCBAQCBweXRob24tc2hlbGwtY29tcGxldGlvbi1hdC1wb2ludC1qZWRpLWNvbXBsZXRlcgog
CiAoZXJ0LWRlZnRlc3QgcHl0aG9uLXNoZWxsLWNvbXBsZXRpb24tYXQtcG9pbnQtaXB5dGhvbiAo
KQogICAiQ2hlY2sgaWYgUHl0aG9uIHNoZWxsIGNvbXBsZXRpb24gd29ya3MgZm9yIElQeXRob24u
IgotICAobGV0ICgocHl0aG9uLXNoZWxsLWludGVycHJldGVyICJpcHl0aG9uIikKKyAgKGxldCAo
KHB5dGhvbi10ZXN0cy1zaGVsbC1pbnRlcnByZXRlciAiaXB5dGhvbiIpCisgICAgICAgIChweXRo
b24tc2hlbGwtaW50ZXJwcmV0ZXIgImlweXRob24iKQogICAgICAgICAocHl0aG9uLXNoZWxsLWlu
dGVycHJldGVyLWFyZ3MgIi1pIC0tc2ltcGxlLXByb21wdCIpKQogICAgIChza2lwLXVubGVzcwog
ICAgICAoYW5kCi0tIAoyLjIwLjUKCg==
--000000000000b39bab0616f77c76--




Acknowledgement sent to Lin Sun <sunlin7.mail@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70578; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 29 Apr 2024 15:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.