[PATCH 4/5] tests: run python-cffi tests

David Bremner david at tethera.net
Fri Nov 8 17:36:33 PST 2019


Tomi Ollila <tomi.ollila at iki.fi> writes:

>
> Right -- just that pytest-3 may not be available -- to iterate (tested)...
>
> if ${NOTMUCH_PYTHON} -m pytest -c $conf --version >/dev/null 2>&1; then
>

The problem with this is that it might pass if pytest is only installed
for python2. 

> (in this particular case redirecting both stdout and stderr is needed
>  to silence noise in all 'ordinary' cases, being 
>    1) pytest module not available -- silence stderr
>    2) pytest version not new enough -- silence stderr
>    3) pytest exists and is new enought -- silence stdout )

agreed


More information about the notmuch mailing list