From 85921864064553d2e415c3af1336a63ebaa23aac Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Tue, 5 Jun 2018 13:43:57 -0700 Subject: [PATCH] Check explicitly if variable is not None --- test_cli/test/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_cli/test/utils.py b/test_cli/test/utils.py index e683f287..0c33c7b8 100644 --- a/test_cli/test/utils.py +++ b/test_cli/test/utils.py @@ -24,7 +24,7 @@ def require_environment_variable(name): """Get environment variable or raise if it does not exist.""" path = os.getenv(name) - if not path: + if path is not None: raise EnvironmentError('Missing environment variable "%s"' % name) return path