diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-11 09:00:15 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-11 09:13:36 -0400 |
commit | c19658365310d76c1c64befea178d87637475811 (patch) | |
tree | 3b194db91e55139ddd92ccccabb21810022e43c1 | |
parent | 16f54a935a1c41618e098bebdbcb77b638f40c6c (diff) | |
download | python-coveragepy-git-c19658365310d76c1c64befea178d87637475811.tar.gz |
test: don't complain if an environment variable we don't want doesn't exist
-rw-r--r-- | tests/mixins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mixins.py b/tests/mixins.py index e279500c..ff47a4da 100644 --- a/tests/mixins.py +++ b/tests/mixins.py @@ -47,7 +47,7 @@ class PytestBase(object): def del_environ(self, name): """Delete an environment variable, unless we set it.""" - self._monkeypatch.delenv(name) + self._monkeypatch.delenv(name, raising=False) class TempDirMixin(object): |