@@ -107,7 +107,7 @@ def test(self):
107
107
with utils .redirect_stdout () as output :
108
108
with self .assertRaises (ParserError ):
109
109
self .parse_args ([option .option_string ])
110
- self .assertNotEmpty (output )
110
+ self .assertTrue (output )
111
111
112
112
return test
113
113
@@ -454,7 +454,9 @@ def test_option_clang_compiler_version(self):
454
454
455
455
with self .assertRaises (ParserError ):
456
456
self .parse_default_args ([option_string , '1' ])
457
+ with self .assertRaises (ParserError ):
457
458
self .parse_default_args ([option_string , '1.2' ])
459
+ with self .assertRaises (ParserError ):
458
460
self .parse_default_args ([option_string , '0.0.0.0.1' ])
459
461
460
462
def test_option_clang_user_visible_version (self ):
@@ -466,7 +468,9 @@ def test_option_clang_user_visible_version(self):
466
468
467
469
with self .assertRaises (ParserError ):
468
470
self .parse_default_args ([option_string , '1' ])
471
+ with self .assertRaises (ParserError ):
469
472
self .parse_default_args ([option_string , '1.2' ])
473
+ with self .assertRaises (ParserError ):
470
474
self .parse_default_args ([option_string , '0.0.0.0.1' ])
471
475
472
476
def test_option_swift_compiler_version (self ):
@@ -478,6 +482,7 @@ def test_option_swift_compiler_version(self):
478
482
479
483
with self .assertRaises (ParserError ):
480
484
self .parse_default_args ([option_string , '1' ])
485
+ with self .assertRaises (ParserError ):
481
486
self .parse_default_args ([option_string , '0.0.0.1' ])
482
487
483
488
def test_option_swift_user_visible_version (self ):
@@ -489,6 +494,7 @@ def test_option_swift_user_visible_version(self):
489
494
490
495
with self .assertRaises (ParserError ):
491
496
self .parse_default_args ([option_string , '1' ])
497
+ with self .assertRaises (ParserError ):
492
498
self .parse_default_args ([option_string , '0.0.0.1' ])
493
499
494
500
def test_option_I (self ):
0 commit comments