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

Unified Diff: third_party/typ/typ/tests/arg_parser_test.py

Issue 2568683002: Roll //third_party/typ to v0.9.9 (Closed)
Patch Set: Created 4 years 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 | « third_party/typ/typ/arg_parser.py ('k') | third_party/typ/typ/version.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/tests/arg_parser_test.py
diff --git a/third_party/typ/typ/tests/arg_parser_test.py b/third_party/typ/typ/tests/arg_parser_test.py
index 8e3a7bdcd64607eafc6d98f9b1bb2d137fe87bd7..3d443f6edf00e08081fe62f60101e5571ad7bb7b 100644
--- a/third_party/typ/typ/tests/arg_parser_test.py
+++ b/third_party/typ/typ/tests/arg_parser_test.py
@@ -44,6 +44,13 @@ class ArgumentParserTest(unittest.TestCase):
check(['--jobs', '3'])
check(['-vv'], ['--verbose', '--verbose'])
+ def test_argv_from_args_foreign_argument(self):
+ parser = ArgumentParser()
+ parser.add_argument('--some-foreign-argument', default=False,
+ action='store_true')
+ args = parser.parse_args(['--some-foreign-argument', '--verbose'])
+ self.assertEqual(['--verbose'], ArgumentParser().argv_from_args(args))
+
def test_valid_shard_options(self):
parser = ArgumentParser()
« no previous file with comments | « third_party/typ/typ/arg_parser.py ('k') | third_party/typ/typ/version.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698