The tests are run both locally and in CI via tox. This guarantees reproducible runs. However, they may be ran differently in some other conditions, e.g. when building a rpm/deb/etc. For instance, python -m pytest would result in a different prog name and break tests if it was hard-coded there.
This change both fixes the tests and adds a tox env that would check this case in the future.
The tests are run both locally and in CI via tox. This guarantees reproducible runs. However, they may be ran differently in some other conditions, e.g. when building a rpm/deb/etc. For instance,
python -m pytest
would result in a different prog name and break tests if it was hard-coded there.This change both fixes the tests and adds a tox env that would check this case in the future.
Fixes #170