Commit Graph

6 Commits

Author SHA1 Message Date
Charles Brunet
bda799dff2 fix python.version() not working in some cases
import('python').find_installation('python').version() causes exception
because of a missing initialization, when `find_installation()` receives
a name or a path.
2023-04-23 23:03:25 -04:00
Filipe Laíns
59b8e00249 tests: take into account Debian Python paths
Signed-off-by: Filipe Laíns <lains@riseup.net>
2021-09-29 08:54:05 -04:00
Michael Hirsch
4f1a240bc2 raise SystemExit() generally preferred to sys.exit(1) 2020-07-12 09:08:04 -04:00
Michael Hirsch
173d1624cb c lang not needed for this test 2020-07-12 09:04:59 -04:00
Dylan Baker
82346a2bd2 modules/python: Report program found in find_installation()
Currently find_installation is silent, which is pretty annoying. Let's
log it.
2019-04-03 14:48:29 -07:00
Dylan Baker
978e6fb88f tests: Add tests for the python module
This doesn't touch everything as it's just based on the python3 module
tests, ported to the python module. It's still better than the one very
basic test in the unit test module.
2018-12-12 12:23:37 -08:00