summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2021-01-19 09:36:23 +0000
committerGitHub <noreply@github.com>2021-01-19 09:36:23 +0000
commit1d23293485930e28ef1f5e73c4512ebf8de5dc0d (patch)
treed13c2a824b7ab894160623afa7e4998593fbf4d8
parent6624a8ce0b3aa8ebe96e4646314f2e8214bce522 (diff)
downloadtox-git-1d23293485930e28ef1f5e73c4512ebf8de5dc0d.tar.gz
Newer coverage plugin updates env-vars, ignore in pytest plugin (#1854)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-rw-r--r--docs/changelog/1854.bugfix.rst2
-rw-r--r--src/tox/_pytestplugin.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/changelog/1854.bugfix.rst b/docs/changelog/1854.bugfix.rst
new file mode 100644
index 00000000..b9fb1f50
--- /dev/null
+++ b/docs/changelog/1854.bugfix.rst
@@ -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`.
diff --git a/src/tox/_pytestplugin.py b/src/tox/_pytestplugin.py
index 2148dd5f..c9176348 100644
--- a/src/tox/_pytestplugin.py
+++ b/src/tox/_pytestplugin.py
@@ -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"