| commit | 5ad7550a9129de60b5b57a60055c781611119d67 | [log] [tgz] |
|---|---|---|
| author | Angelos Evripiotis <jevripiotis@bloomberg.net> | Mon Oct 28 15:44:51 2019 +0000 |
| committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | Mon Oct 28 17:18:10 2019 +0000 |
| tree | 1c41409085f1ffdf844897b283ea386c83fe35f2 | |
| parent | 71189d46622201550b86de569aa1517adbd328c7 [diff] |
tests/artifactshare: safer cleanup_on_sigterm use Use the documented path [1] to `pytest_cov.embed.cleanup_on_sigterm()`, to avoid crashing on some versions. It turns out that pytest_cov v2.6.1 on my machine doesn't like the way that we were accessing cleanup_on_sigterm(). Access it in such a way that we will either get the function or an ImportError, as per the documentation. [1]: https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html