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

Unified Diff: recipe_modules/properties/example.py

Issue 2439353002: Refactor expectations of properties recipe_module. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | recipe_modules/properties/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/properties/example.py
diff --git a/recipe_modules/properties/example.py b/recipe_modules/properties/example.py
index dd5eb133cfb46e4c59597d818fe843dcad3793fb..59456060dc398caaaef27cff8b576db8a53e30b0 100644
--- a/recipe_modules/properties/example.py
+++ b/recipe_modules/properties/example.py
@@ -18,8 +18,7 @@ def RunSteps(api, test_prop, param_name_test):
api.step('echo', ['echo'] + [repr(test_prop), repr(param_name_test)])
properties = api.properties.thaw()
- api.step('echo all', ['echo'] +
- [repr(list(sorted(api.properties.thaw().iteritems())))])
+ api.step('echo all', ['echo'] + map(repr, sorted(properties.iteritems())))
# It should behave like a real dictionary.
assert len(properties) == len(api.properties)
« no previous file with comments | « no previous file | recipe_modules/properties/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698