@@ -156,20 +156,30 @@ def test_multivar() -> None:
156156config .add_file (CONFIG_FILENAME , 6 )
157157assert 'this.that' in config
158158
159- assert ['foobar' , 'foobeer' ] == list (config .get_multivar ('this.that' ))
160- assert ['foobar' ] == list (config .get_multivar ('this.that' , 'bar' ))
161- assert ['foobar' , 'foobeer' ] == list (config .get_multivar ('this.that' , 'foo.*' ))
159+ assert ['foobar' , 'foobeer' ] == list (
160+ str (config_entry ) for config_entry in config .get_multivar ('this.that' )
161+ )
162+ assert ['foobar' ] == list (
163+ str (config_entry ) for config_entry in config .get_multivar ('this.that' , 'bar' )
164+ )
165+ assert ['foobar' , 'foobeer' ] == list (
166+ str (config_entry ) for config_entry in config .get_multivar ('this.that' , 'foo.*' )
167+ )
162168
163169config .set_multivar ('this.that' , '^.*beer' , 'fool' )
164- assert ['fool' ] == list (config .get_multivar ('this.that' , 'fool' ))
170+ assert ['fool' ] == list (
171+ str (config_entry ) for config_entry in config .get_multivar ('this.that' , 'fool' )
172+ )
165173
166174config .set_multivar ('this.that' , 'foo.*' , 'foo-123456' )
167175assert ['foo-123456' , 'foo-123456' ] == list (
168- config .get_multivar ('this.that' , 'foo.*' )
176+ str ( config_entry ) for config_entry in config .get_multivar ('this.that' , 'foo.*' )
169177 )
170178
171179config .delete_multivar ('this.that' , 'bar' )
172- assert ['foo-123456' , 'foo-123456' ] == list (config .get_multivar ('this.that' , '' ))
180+ assert ['foo-123456' , 'foo-123456' ] == list (
181+ str (config_entry ) for config_entry in config .get_multivar ('this.that' , '' )
182+ )
173183
174184config .delete_multivar ('this.that' , 'foo-[0-9]+' )
175185assert [] == list (config .get_multivar ('this.that' , '' ))
0 commit comments