@@ -394,17 +394,17 @@ def test_filter_to_company_with_default(self):
394394
395395 def test_filter_to_tag (self ):
396396 company = "PythonTestSuite"
397- data = self .run_py ([f "-V:3.100" ])
397+ data = self .run_py (["-V:3.100" ])
398398 self .assertEqual ("X.Y.exe" , data ["LaunchCommand" ])
399399 self .assertEqual (company , data ["env.company" ])
400400 self .assertEqual ("3.100" , data ["env.tag" ])
401401
402- data = self .run_py ([f "-V:3.100-32" ])
402+ data = self .run_py (["-V:3.100-32" ])
403403 self .assertEqual ("X.Y-32.exe" , data ["LaunchCommand" ])
404404 self .assertEqual (company , data ["env.company" ])
405405 self .assertEqual ("3.100-32" , data ["env.tag" ])
406406
407- data = self .run_py ([f "-V:3.100-arm64" ])
407+ data = self .run_py (["-V:3.100-arm64" ])
408408 self .assertEqual ("X.Y-arm64.exe -X fake_arg_for_test" , data ["LaunchCommand" ])
409409 self .assertEqual (company , data ["env.company" ])
410410 self .assertEqual ("3.100-arm64" , data ["env.tag" ])
@@ -421,7 +421,7 @@ def test_filter_to_company_and_tag(self):
421421 def test_filter_with_single_install (self ):
422422 company = "PythonTestSuite1"
423423 data = self .run_py (
424- [f "-V:Nonexistent" ],
424+ ["-V:Nonexistent" ],
425425 env = {"PYLAUNCHER_LIMIT_TO_COMPANY" : company },
426426 expect_returncode = 103 ,
427427 )
@@ -500,7 +500,7 @@ def test_py_default_short_argv0(self):
500500 data = self .run_py (["--version" ], argv = f'{ argv0 } --version' )
501501 self .assertEqual ("PythonTestSuite" , data ["SearchInfo.company" ])
502502 self .assertEqual ("3.100" , data ["SearchInfo.tag" ])
503- self .assertEqual (f' X.Y.exe --version' , data ["stdout" ].strip ())
503+ self .assertEqual (" X.Y.exe --version" , data ["stdout" ].strip ())
504504
505505 def test_py_default_in_list (self ):
506506 data = self .run_py (["-0" ], env = TEST_PY_ENV )
@@ -662,38 +662,38 @@ def test_install(self):
662662 self .assertIn ("9PJPW5LDXLZ5" , cmd )
663663
664664 def test_literal_shebang_absolute (self ):
665- with self .script (f "#! C:/some_random_app -witharg" ) as script :
665+ with self .script ("#! C:/some_random_app -witharg" ) as script :
666666 data = self .run_py ([script ])
667667 self .assertEqual (
668668 f"C:\\ some_random_app -witharg { script } " ,
669669 data ["stdout" ].strip (),
670670 )
671671
672672 def test_literal_shebang_relative (self ):
673- with self .script (f "#! ..\\ some_random_app -witharg" ) as script :
673+ with self .script ("#! ..\\ some_random_app -witharg" ) as script :
674674 data = self .run_py ([script ])
675675 self .assertEqual (
676676 f"{ script .parent .parent } \\ some_random_app -witharg { script } " ,
677677 data ["stdout" ].strip (),
678678 )
679679
680680 def test_literal_shebang_quoted (self ):
681- with self .script (f '#! "some random app" -witharg' ) as script :
681+ with self .script ('#! "some random app" -witharg' ) as script :
682682 data = self .run_py ([script ])
683683 self .assertEqual (
684684 f'"{ script .parent } \\ some random app" -witharg { script } ' ,
685685 data ["stdout" ].strip (),
686686 )
687687
688- with self .script (f '#! some" random "app -witharg' ) as script :
688+ with self .script ('#! some" random "app -witharg' ) as script :
689689 data = self .run_py ([script ])
690690 self .assertEqual (
691691 f'"{ script .parent } \\ some random app" -witharg { script } ' ,
692692 data ["stdout" ].strip (),
693693 )
694694
695695 def test_literal_shebang_quoted_escape (self ):
696- with self .script (f '#! some\\ " random "app -witharg' ) as script :
696+ with self .script ('#! some\\ " random "app -witharg' ) as script :
697697 data = self .run_py ([script ])
698698 self .assertEqual (
699699 f'"{ script .parent } \\ some\\ random app" -witharg { script } ' ,
0 commit comments