[PATCH 4/5] tests: run python-cffi tests
Tomi Ollila
tomi.ollila at iki.fi
Mon Nov 4 14:04:03 PST 2019
On Mon, Nov 04 2019, Tomi Ollila wrote:
>
> as for checking pytest existence, the following works somewhat:
>
> ~/test-venv/bin/python3 -m pytest --version
>
> It prints the version, then exists. Could not figure out how to request
> specific version in quick look (10 min search/trial/error session),
> parsing version output is so... :/
Hah, dumped ~/test-venv/.
so retry...
$ python3 -m venv ~/test-venv
$ ~/test-venv/bin/pip3 install pytest
$ ~/test-venv/bin/python3
>>> import pytest
>>> dir(pytest)
>>> pytest.__version__
prints out '5.2.2'. argh, string again (in addition to resorting
to __...__ names/attributes of whatever these are called in python ;).
anyway, even parsing this version string in python than doing it in
shell script would be better...(*)
anything better ?
Tomi
(*) got exhausted when looking through this:
https://stackoverflow.com/questions/11887762/how-do-i-compare-version-numbers-in-python
More information about the notmuch
mailing list