Index: third_party/gsutil/third_party/boto/tests/mturk/run-doctest.py |
diff --git a/third_party/gsutil/third_party/boto/tests/mturk/run-doctest.py b/third_party/gsutil/third_party/boto/tests/mturk/run-doctest.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e6d9f83ef09df75011515ef439e4875cd2673836 |
--- /dev/null |
+++ b/third_party/gsutil/third_party/boto/tests/mturk/run-doctest.py |
@@ -0,0 +1,13 @@ |
+import argparse |
+import doctest |
+ |
+parser = argparse.ArgumentParser( |
+ description="Run a test by name" |
+ ) |
+parser.add_argument('test_name') |
+args = parser.parse_args() |
+ |
+doctest.testfile( |
+ args.test_name, |
+ optionflags=doctest.REPORT_ONLY_FIRST_FAILURE |
+ ) |