Index: third_party/gsutil/boto/tests/mturk/run-doctest.py |
diff --git a/third_party/gsutil/boto/tests/mturk/run-doctest.py b/third_party/gsutil/boto/tests/mturk/run-doctest.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..802b773996925364328f735a85de2bfb8c42b82f |
--- /dev/null |
+++ b/third_party/gsutil/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 |
+ ) |