mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
benchmark script tests: make the match string for invalid option errors more flexible
Because the actual output depends on the python version
This commit is contained in:
@@ -112,7 +112,7 @@ class Test_parse_args(unittest.TestCase):
|
||||
[
|
||||
"error:",
|
||||
"argument -o/--optimization: invalid choice: 'bogus'",
|
||||
"(choose from 'O', 'Onone', 'Osize')",
|
||||
"(choose from ",
|
||||
],
|
||||
err.getvalue(),
|
||||
)
|
||||
|
||||
@@ -860,7 +860,7 @@ class Test_parse_args(unittest.TestCase):
|
||||
)
|
||||
self.assertIn(
|
||||
"error: argument --format: invalid choice: 'bogus' "
|
||||
"(choose from 'markdown', 'git', 'html')",
|
||||
"(choose from ",
|
||||
err.getvalue(),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user