aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xtesting/utils/env.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/xtesting/utils/env.py b/xtesting/utils/env.py
index 042ab675..83484914 100644
--- a/xtesting/utils/env.py
+++ b/xtesting/utils/env.py
@@ -30,9 +30,8 @@ INPUTS = {
def get(env_var):
- if env_var not in INPUTS.keys():
- return os.environ.get(env_var, None)
- return os.environ.get(env_var, INPUTS[env_var])
+ # defaults to None if env_var is not found
+ return os.environ.get(env_var, INPUTS.get(env_var))
def string():