To keep it DRY, I'll put a reference to the original issue: https://github.com/MobileDynasty/pytest-env/issues/11 There's is also a PR with a fix: https://github.com/MobileDynasty/pytest-env/pull/12