GNU bug report logs -
#30556
Python tests should run with multiple python versions
Previous Next
Reported by: Mathieu Lirzin <mthl <at> gnu.org>
Date: Tue, 20 Feb 2018 20:40:02 UTC
Severity: wishlist
Tags: confirmed
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi.
I have both Python v2 and v3 installed on my system. The tests shown
in the provided error log pass for me, in all cases:
- no version - defaults to 3.9.8
make check TESTS='t/nobase-python.sh t/py-compile-basic.sh
t/py-compile-basedir.sh t/py-compile-destdir.sh
t/py-compile-option-terminate.sh t/python3.sh t/python10.sh
t/python12.sh '
- explicit v2 (2.7.18):
PYTHON=python2 make check TESTS='t/nobase-python.sh
t/py-compile-basic.sh t/py-compile-basedir.sh t/py-compile-destdir.sh
t/py-compile-option-terminate.sh t/python3.sh t/python10.sh
t/python12.sh '
- explicit v3:
PYTHON=python3 make check TESTS='t/nobase-python.sh
t/py-compile-basic.sh t/py-compile-basedir.sh t/py-compile-destdir.sh
t/py-compile-option-terminate.sh t/python3.sh t/python10.sh
t/python12.sh '
I guess this got fixed in the repository since the defect was
reported. Some of the tests touch the "uninstall" target and that
certainly was changed.
My Automake version:
- branch: master
- last commit ID: 0901ccdd0cb21bfa3911a2668615e388fef94426
- last commit date: Wed Mar 1 15:03:30 2023 -0800
Actually, I could fix t/python-prefix.sh to work with Python v2 and
t/python-virtualenv.sh to work at all (didn't work by default for me).
Patch attached. Now all tests with "py" in the name pass on my system
(both with v2 and v3). I assume that Automake, 'make install' and
'make uninstall' do their job correctly (and that's most probably
true) and it's just the tests that were doing wrong.
--
Regards - Bogdan ('bogdro') D. (GNU/Linux & FreeDOS)
X86 assembly (DOS, GNU/Linux): http://bogdro.evai.pl/index-en.php
Soft(EN): http://bogdro.evai.pl/soft http://bogdro.evai.pl/soft4asm
www.Xiph.org www.TorProject.org www.LibreOffice.org www.GnuPG.org
[automake-fix-python-tests-mail.diff (text/x-patch, attachment)]
This bug report was last modified 1 year and 323 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.