[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python i
From: |
kobarity |
Subject: |
bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters |
Date: |
Sun, 02 Jun 2024 22:20:47 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Mattias Engdegård wrote:
> 29 maj 2024 kl. 16.56 skrev kobarity <kobarity@gmail.com>:
>
> > What I want to do now is not to
> > fix the "bug", but to accept the current situation and express it as
> > the ERTs. Otherwise, even if we change the order of the interpreters,
> > it will fail when some Mac user sets EMACS_PYTHON_INTERPRETER to
> > "python" and runs ERTs for example.
>
> That's very generous of you but watch out so that you don't waste time on
> busywork that isn't strictly necessary.
>
> I did adjust the order of the interpreters in 9c7de10079, by the way; that
> took care of my own itches for this bug.
>
> Do whatever you feel is necessary but again, your own time is precious.
Thanks, but as I mentioned before, this is something I thought we
would need sooner or later, even before the bug was found.
The attached patch is my proposal. I added PRED argument to
`python-tests-get-shell-interpreter' to allow conditions to be
specified when selecting an interpreter. For now, I only provide a
predicate that the major version of the interpreter is 3, but I think
it would be easy to add.
It would be helpful if you could try each of the following on Mac.
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.
2. Revert 9c7de10079 and run ERTs. The expectation is that the 7 ERTs
that previously failed will succeed.
BTW, 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?
0001-Specify-Python-3-in-some-ERTs-on-Mac.patch
Description: Binary data
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters,
kobarity <=
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, Mattias Engdegård, 2024/06/03
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, kobarity, 2024/06/03
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, kobarity, 2024/06/03
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, kobarity, 2024/06/04
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, Mattias Engdegård, 2024/06/05
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, kobarity, 2024/06/05
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, kobarity, 2024/06/08
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, Mattias Engdegård, 2024/06/09
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, kobarity, 2024/06/10
- bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters, Mattias Engdegård, 2024/06/10