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

Unified Diff: recipe_modules/python/example.resources/test.py

Issue 2875823002: Add vpython support to Python recipe module. (Closed)
Patch Set: Created 3 years, 7 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
Index: recipe_modules/python/example.resources/test.py
diff --git a/recipe_modules/python/example.resources/test.py b/recipe_modules/python/example.resources/test.py
new file mode 100644
index 0000000000000000000000000000000000000000..01a7a59cf904b2e9fbdf754c2bfe48d46944b220
--- /dev/null
+++ b/recipe_modules/python/example.resources/test.py
@@ -0,0 +1,22 @@
+# Copyright 2017 The LUCI Authors. All rights reserved.
+# Use of this source code is governed under the Apache License, Version 2.0
+# that can be found in the LICENSE file.
+
+import argparse
+import os
+import sys
+
+
+def main():
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--verify', action='store_true')
+ opts = parser.parse_args()
+
+ if opts.verify:
+ import six
+ assert six.__version__ == '1.10.0'
+ return 0
+
+
+if __name__ == '__main__':
+ sys.exit(main())

Powered by Google App Engine
This is Rietveld 408576698