Skip to content
Snippets Groups Projects
Commit 17a825d3 authored by Vermaat's avatar Vermaat
Browse files

Merge pull request #137 from mutalyzer/suppress-env-warning

Suppress warning about env variable in tests
parents 66902f15 72a10c1a
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ class LazySettings(util.LazyObject):
"""
self._wrapped = Settings()
self._wrapped.from_object('mutalyzer.config.default_settings')
if from_environment:
if from_environment and ENVIRONMENT_VARIABLE is not None:
if ENVIRONMENT_VARIABLE in os.environ:
self._wrapped.from_envvar(ENVIRONMENT_VARIABLE)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment