@@ -142,17 +142,17 @@ def test_parse_known_args(self, parser: parseopt.Parser) -> None:
142142 parser .parse_known_args ([Path ("." )])
143143 parser .addoption ("--hello" , action = "store_true" )
144144 ns = parser .parse_known_args (["x" , "--y" , "--hello" , "this" ])
145- assert ns .hello
146- assert ns .file_or_dir == ["x" ]
145+ assert ns .hello is True
146+ assert ns .file_or_dir == ["x" , "this" ]
147147
148148 def test_parse_known_and_unknown_args (self , parser : parseopt .Parser ) -> None :
149149 parser .addoption ("--hello" , action = "store_true" )
150150 ns , unknown = parser .parse_known_and_unknown_args (
151151 ["x" , "--y" , "--hello" , "this" ]
152152 )
153- assert ns .hello
154- assert ns .file_or_dir == ["x" ]
155- assert unknown == ["--y" , "this" ]
153+ assert ns .hello is True
154+ assert ns .file_or_dir == ["x" , "this" ]
155+ assert unknown == ["--y" ]
156156
157157 def test_parse_will_set_default (self , parser : parseopt .Parser ) -> None :
158158 parser .addoption ("--hello" , dest = "hello" , default = "x" , action = "store" )
0 commit comments