Skip to content

Commit

Permalink
Newer coverage plugin updates env-vars, ignore in pytest plugin (#1854)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
gaborbernat and pre-commit-ci[bot] authored Jan 19, 2021
1 parent 6624a8c commit 1d23293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changelog/1854.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Newer coverage tools update the ``COV_CORE_CONTEXT`` environment variable, add it to the list of environment variables
that can change in our pytest plugin - by :user:`gaborbernat`.
2 changes: 1 addition & 1 deletion src/tox/_pytestplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def check_os_environ_stable():
diff = {
"{} = {} vs {}".format(k, old[k], new[k])
for k in set(old) & set(new)
if old[k] != new[k] and not k.startswith("PYTEST_")
if old[k] != new[k] and not (k.startswith("PYTEST_") or k.startswith("COV_"))
}
if extra or miss or diff:
msg = "test changed environ"
Expand Down

0 comments on commit 1d23293

Please sign in to comment.