Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: recipe_modules/context/tests/env.py

Issue 2920223011: [context] fix treatment of None in env. (Closed)
Patch Set: really fix it Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/context/api.py ('k') | recipe_modules/context/tests/env.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/context/tests/env.py
diff --git a/recipe_modules/context/tests/env.py b/recipe_modules/context/tests/env.py
index 867e27ea9f90e8c30a6c6a1c34c46a2526bbab5b..4ba106097f8af7708ae35cca8a43b71f2dcc39e6 100644
--- a/recipe_modules/context/tests/env.py
+++ b/recipe_modules/context/tests/env.py
@@ -35,6 +35,10 @@ def RunSteps(api):
api.step('env with default value',
['bash', '-c', 'echo $FOO'])
+ # Can cause envvars to be dropped completely.
+ with api.context(env={"PYTHONPATH": None}):
+ api.step('drop PYTHONPATH', ['bash', '-c', 'set'])
+
def GenTests(api):
yield api.test('basic')
« no previous file with comments | « recipe_modules/context/api.py ('k') | recipe_modules/context/tests/env.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698