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

Unified Diff: recipe_engine/unittests/stream_test.py

Issue 2245113002: Track step nesting in StreamEngine. (Closed) Base URL: https://github.com/luci/recipes-py@emit-initial-properties
Patch Set: Rebase, comments. Created 4 years, 3 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_engine/unittests/run_test.py ('k') | recipe_modules/generator_script/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/unittests/stream_test.py
diff --git a/recipe_engine/unittests/stream_test.py b/recipe_engine/unittests/stream_test.py
index c0d58bcf00c243f9778e5406e0cff6f4571bbd58..03a7e8b3cb1ac863437ce2284f443910522d9acc 100755
--- a/recipe_engine/unittests/stream_test.py
+++ b/recipe_engine/unittests/stream_test.py
@@ -36,8 +36,10 @@ class StreamTest(unittest.TestCase):
# subannotations, since the subannotator stream could have changed the
# active step. To do this right we would need to parse and re-emit
# subannotations.
- bars_baby = engine.new_step_stream('bar\'s baby', allow_subannotations=True)
- bars_baby.set_nest_level(1)
+ bars_baby = engine.new_step_stream(
+ 'bar\'s baby',
+ allow_subannotations=True,
+ nest_level=1)
bars_baby.write_line('I\'m in bar\'s imagination!!')
bars_baby.write_line('@@@STEP_WARNINGS@@@')
bars_baby.reset_subannotation_state()
« no previous file with comments | « recipe_engine/unittests/run_test.py ('k') | recipe_modules/generator_script/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698