GNU bug report logs -
#78525
[PATCH] test: Skip a test that fails without python enabled.
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On a system without Python 't/py-compile-usage' fails with:
+ ./py-compile --help
+ cat stdout
py-compile: Invalid python executable (according to -V): python
py-compile: Python support disabled
+ test -s stderr
+ grep '^Usage: py-compile .' stdout
+ am_exit_trap 1
+ exit_status=1
This occurs after the following commit:
commit 0ea7ef97493cd88da915d1936e04a6ace5c754d8
Author: Karl Berry <karl <at> freefriends.org>
Date: Sun Feb 9 09:36:24 2025 -0800
python: restore more compatible behavior for $PYTHON.
For https://bugs.gnu.org/74434.
* lib/py-compile: if $PYTHON -V does not include the
string "python" (case-insensitive), consider the support
intentionally disabled and exit successfully, unless PYTHON is set
to false, in which case exit unsuccessfully. This is closer to
the old behavior. Mention this in the help message.
* t/py-compile-env.sh: add test for PYTHON=:.
* NEWS: mention this. (And, en passant, add some past bug#s and
clarify that only RCS/SCCS pattern rules were disabled, not all.)
Simple 1 line fix attached. :)
Collin
[0001-test-Skip-a-test-that-fails-without-python-enabled.patch (text/x-patch, attachment)]
This bug report was last modified 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.