@@ -63,7 +63,7 @@ async def async_test_main(
6363 ),
6464 pytest .param (
6565 'empty_line.py' , 'empty_line_fixed.py' ,
66- None , 0 ,
66+ [ '--py39-plus' ] , 0 ,
6767 id = "typing_updated_empty_line" ,
6868 ),
6969 pytest .param (
@@ -199,27 +199,27 @@ async def test_main_type_alias(
199199 ),
200200 pytest .param (
201201 'comment_1.py' , 'comment_1_forced.py' ,
202- ['--force' ], 2 ,
202+ ['--py39-plus' , '-- force' ], 2 ,
203203 id = "comment_1_forced" ,
204204 ),
205205 pytest .param (
206206 'comment_2.py' , 'comment_2_forced.py' ,
207- ['--force' ], 2 ,
207+ ['--py39-plus' , '-- force' ], 2 ,
208208 id = "comment_2_forced" ,
209209 ),
210210 pytest .param (
211211 'comment_3.py' , 'comment_3_forced.py' ,
212- ['--force' ], 2 ,
212+ ['--py39-plus' , '-- force' ], 2 ,
213213 id = "comment_3_forced" ,
214214 ),
215215 pytest .param (
216216 'comment_4.py' , 'comment_4_forced.py' ,
217- ['--force' ], 2 ,
217+ ['--py39-plus' , '-- force' ], 2 ,
218218 id = "comment_4_forced" ,
219219 ),
220220 pytest .param (
221221 'comment_5.py' , 'comment_5_forced.py' ,
222- ['--force' ], 2 ,
222+ ['--py39-plus' , '-- force' ], 2 ,
223223 id = "comment_5_forced" ,
224224 ),
225225 ),
@@ -239,32 +239,32 @@ async def test_main_comment(
239239 (
240240 pytest .param (
241241 'comment_no_issue_1.py' , 'comment_no_issue_1_fixed.py' ,
242- None , 0 ,
242+ [ '--py39-plus' ] , 0 ,
243243 id = "comment_no_issue_1" ,
244244 ),
245245 pytest .param (
246246 'comment_no_issue_2.py' , 'comment_no_issue_2_fixed.py' ,
247- None , 0 ,
247+ [ '--py39-plus' ] , 0 ,
248248 id = "comment_no_issue_2" ,
249249 ),
250250 pytest .param (
251251 'comment_no_issue_3.py' , 'comment_no_issue_3_fixed.py' ,
252- None , 0 ,
252+ [ '--py39-plus' ] , 0 ,
253253 id = "comment_no_issue_3" ,
254254 ),
255255 pytest .param (
256256 'comment_no_issue_4.py' , 'comment_no_issue_4_fixed.py' ,
257- None , 0 ,
257+ [ '--py39-plus' ] , 0 ,
258258 id = "comment_no_issue_4" ,
259259 ),
260260 pytest .param (
261261 'comment_no_issue_5.py' , 'comment_no_issue_5_fixed.py' ,
262- None , 0 ,
262+ [ '--py39-plus' ] , 0 ,
263263 id = "comment_no_issue_5" ,
264264 ),
265265 pytest .param (
266266 'comment_no_issue_6.py' , 'comment_no_issue_6_fixed.py' ,
267- None , 0 ,
267+ [ '--py39-plus' ] , 0 ,
268268 id = "comment_no_issue_6" ,
269269 ),
270270 ),
@@ -283,22 +283,22 @@ async def test_main_comment_no_issue(
283283 (
284284 pytest .param (
285285 'comment_import_no_issue_1.py' , 'comment_import_no_issue_1_fixed.py' ,
286- None , 0 ,
286+ [ '--py39-plus' ] , 0 ,
287287 id = "comment_import_no_issue_1" ,
288288 ),
289289 pytest .param (
290290 'comment_import_no_issue_2.py' , 'comment_import_no_issue_2_fixed.py' ,
291- None , 0 ,
291+ [ '--py39-plus' ] , 0 ,
292292 id = "comment_import_no_issue_2" ,
293293 ),
294294 pytest .param (
295295 'comment_import_no_issue_3.py' , 'comment_import_no_issue_3_fixed.py' ,
296- None , 0 ,
296+ [ '--py39-plus' ] , 0 ,
297297 id = "comment_import_no_issue_3" ,
298298 ),
299299 pytest .param (
300300 'comment_import_no_issue_4.py' , 'comment_import_no_issue_4_fixed.py' ,
301- None , 0 ,
301+ [ '--py39-plus' ] , 0 ,
302302 id = "comment_import_no_issue_4" ,
303303 ),
304304 ),
@@ -317,22 +317,22 @@ async def test_main_comment_import_no_issue(
317317 (
318318 pytest .param (
319319 'unused_import_1.py' , 'unused_import_1_fixed.py' ,
320- None , 0 ,
320+ [ '--py39-plus' ] , 0 ,
321321 id = "unused_import_1_fixed" ,
322322 ),
323323 pytest .param (
324324 'unused_import_2.py' , 'unused_import_2_fixed.py' ,
325- None , 0 ,
325+ [ '--py39-plus' ] , 0 ,
326326 id = "unused_import_2_fixed" ,
327327 ),
328328 pytest .param (
329329 'unused_import_3.py' , 'unused_import_3_fixed.py' ,
330- None , 0 ,
330+ [ '--py39-plus' ] , 0 ,
331331 id = "unused_import_3_fixed" ,
332332 ),
333333 pytest .param (
334334 'unused_import_4.py' , 'unused_import_4_fixed.py' ,
335- None , 0 ,
335+ [ '--py39-plus' ] , 0 ,
336336 id = "unused_import_4_fixed" ,
337337 ),
338338 pytest .param (
@@ -357,22 +357,22 @@ async def test_main_comment_import_no_issue(
357357 ),
358358 pytest .param (
359359 'unused_import_5.py' , 'unused_import_5_forced.py' ,
360- ['--force' ], 2 ,
360+ ['--py39-plus' , '-- force' ], 2 ,
361361 id = "unused_import_5_forced" ,
362362 ),
363363 pytest .param (
364364 'unused_import_6.py' , 'unused_import_6_forced.py' ,
365- ['--force' ], 2 ,
365+ ['--py39-plus' , '-- force' ], 2 ,
366366 id = "unused_import_6_forced" ,
367367 ),
368368 pytest .param (
369369 'unused_import_7.py' , 'unused_import_7_forced.py' ,
370- ['--force' ], 2 ,
370+ ['--py39-plus' , '-- force' ], 2 ,
371371 id = "unused_import_7_forced" ,
372372 ),
373373 pytest .param (
374374 'unused_import_8.py' , 'unused_import_8_forced.py' ,
375- ['--force' ], 2 ,
375+ ['--py39-plus' , '-- force' ], 2 ,
376376 id = "unused_import_8_forced" ,
377377 ),
378378 ),
@@ -392,22 +392,22 @@ async def test_main_unused_import(
392392 (
393393 pytest .param (
394394 'unused_import_comment_1.py' , 'unused_import_comment_1_fixed.py' ,
395- None , 0 ,
395+ [ '--py39-plus' ] , 0 ,
396396 id = "unused_import_comment_1_fixed" ,
397397 ),
398398 pytest .param (
399399 'unused_import_comment_2.py' , 'unused_import_comment_2_fixed.py' ,
400- None , 0 ,
400+ [ '--py39-plus' ] , 0 ,
401401 id = "unused_import_comment_2_fixed" ,
402402 ),
403403 pytest .param (
404404 'unused_import_comment_5.py' , 'unused_import_comment_5_fixed.py' ,
405- None , 0 ,
405+ [ '--py39-plus' ] , 0 ,
406406 id = "unused_import_comment_5_fixed" ,
407407 ),
408408 pytest .param (
409409 'unused_import_comment_6.py' , 'unused_import_comment_6_fixed.py' ,
410- None , 0 ,
410+ [ '--py39-plus' ] , 0 ,
411411 id = "unused_import_comment_6_fixed" ,
412412 ),
413413 pytest .param (
@@ -432,22 +432,22 @@ async def test_main_unused_import(
432432 ),
433433 pytest .param (
434434 'unused_import_comment_3.py' , 'unused_import_comment_3_forced.py' ,
435- ['--force' ], 2 ,
435+ ['--py39-plus' , '-- force' ], 2 ,
436436 id = "unused_import_comment_3_forced" ,
437437 ),
438438 pytest .param (
439439 'unused_import_comment_4.py' , 'unused_import_comment_4_forced.py' ,
440- ['--force' ], 2 ,
440+ ['--py39-plus' , '-- force' ], 2 ,
441441 id = "unused_import_comment_4_forced" ,
442442 ),
443443 pytest .param (
444444 'unused_import_comment_7.py' , 'unused_import_comment_7_forced.py' ,
445- ['--force' ], 2 ,
445+ ['--py39-plus' , '-- force' ], 2 ,
446446 id = "unused_import_comment_7_forced" ,
447447 ),
448448 pytest .param (
449449 'unused_import_comment_8.py' , 'unused_import_comment_8_forced.py' ,
450- ['--force' ], 2 ,
450+ ['--py39-plus' , '-- force' ], 2 ,
451451 id = "unused_import_comment_8_forced" ,
452452 ),
453453 ),
0 commit comments