Skip to content

Commit

Permalink
test: don't complain if an environment variable we don't want doesn't…
Browse files Browse the repository at this point in the history
… exist
  • Loading branch information
nedbat committed Apr 11, 2021
1 parent 16f54a9 commit c196583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def set_environ(self, name, value):

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):
Expand Down

0 comments on commit c196583

Please sign in to comment.