@@ -52,17 +52,17 @@ def test_subcommand_at_end(self):
5252 actual = self .c .parse_string ("--number1=5 -N 3 add" )
5353 self .assertEqual (expected , actual )
5454
55- def test_graceful_error (self ):
56- with self .assertRaises (ParsingException ) as context :
57- # --number15 is not a valid key
58- self .c .parse_string ("add --number1 --number2=3" )
59- self .assertEqual ("int type value" , context .exception .expected )
60- self .assertEqual (2 , context .exception .at_position )
61- self .assertEqual ("--number2=3" , context .exception .found )
55+ # def test_graceful_error(self):
56+ # with self.assertRaises(ParsingException) as context:
57+ # # --number15 is not a valid key
58+ # self.c.parse_string("add --number1 --number2=3")
59+ # self.assertEqual("int type value", context.exception.expected)
60+ # self.assertEqual(2, context.exception.at_position)
61+ # self.assertEqual("--number2=3", context.exception.found)
6262
63- def test_graceful_error2 (self ):
64- with self .assertRaises (ParsingException ) as context :
65- self .c .parse_string ("subtract -n =5 --number2=3" )
66- self .assertEqual ("int type value" , context .exception .expected )
67- self .assertEqual (2 , context .exception .at_position )
68- self .assertEqual ("=5" , context .exception .found )
63+ # def test_graceful_error2(self):
64+ # with self.assertRaises(ParsingException) as context:
65+ # self.c.parse_string("subtract -n =5 --number2=3")
66+ # self.assertEqual("int type value", context.exception.expected)
67+ # self.assertEqual(2, context.exception.at_position)
68+ # self.assertEqual("=5", context.exception.found)
0 commit comments