@@ -52,15 +52,15 @@ def science_exe(
5252 subprocess .run (
5353 args = [
5454 sys .executable ,
55- str ( science_pyz ) ,
55+ science_pyz ,
5656 "lift" ,
5757 "--file" ,
5858 f"science.pyz={ science_pyz } " ,
5959 "--file" ,
6060 f"docsite={ docsite } " ,
6161 "build" ,
6262 "--dest-dir" ,
63- str ( dest ) ,
63+ dest ,
6464 ],
6565 check = True ,
6666 cwd = build_root ,
@@ -77,15 +77,15 @@ def test_use_platform_suffix(
7777 assert not expected_executable .exists ()
7878 subprocess .run (
7979 args = [
80- str ( science_exe ) ,
80+ science_exe ,
8181 "lift" ,
8282 "--file" ,
8383 f"science.pyz={ science_pyz } " ,
8484 "--file" ,
8585 f"docsite={ docsite } " ,
8686 "build" ,
8787 "--dest-dir" ,
88- str ( tmp_path ) ,
88+ tmp_path ,
8989 "--use-platform-suffix" ,
9090 config ,
9191 ],
@@ -104,7 +104,7 @@ def test_no_use_platform_suffix(
104104 assert not expected_executable .exists ()
105105 subprocess .run (
106106 args = [
107- str ( science_exe ) ,
107+ science_exe ,
108108 "lift" ,
109109 "--file" ,
110110 f"science.pyz={ science_pyz } " ,
@@ -114,7 +114,7 @@ def test_no_use_platform_suffix(
114114 foreign_platform .value ,
115115 "build" ,
116116 "--dest-dir" ,
117- str ( tmp_path ) ,
117+ tmp_path ,
118118 "--no-use-platform-suffix" ,
119119 config ,
120120 ],
@@ -157,15 +157,15 @@ def test_hash(
157157
158158 subprocess .run (
159159 args = [
160- str ( science_exe ) ,
160+ science_exe ,
161161 "lift" ,
162162 "--file" ,
163163 f"science.pyz={ science_pyz } " ,
164164 "--file" ,
165165 f"docsite={ docsite } " ,
166166 "build" ,
167167 "--dest-dir" ,
168- str ( tmp_path ) ,
168+ tmp_path ,
169169 * itertools .chain .from_iterable (("--hash" , algorithm ) for algorithm in algorithms ),
170170 config ,
171171 ],
@@ -176,7 +176,7 @@ def test_hash(
176176 if shasum :
177177 subprocess .run (
178178 args = [shasum , "-c" , * (checksum_file .name for checksum_file in expected_checksum_paths )],
179- cwd = str ( tmp_path ) ,
179+ cwd = tmp_path ,
180180 check = True ,
181181 )
182182 else :
@@ -200,7 +200,7 @@ def test_dogfood(
200200 dest = tmp_path / "dest"
201201 subprocess .run (
202202 args = [
203- str ( science_exe ) ,
203+ science_exe ,
204204 "lift" ,
205205 "--file" ,
206206 f"science.pyz={ science_pyz } " ,
@@ -250,7 +250,7 @@ def test_nested_filenames(
250250 (tmp_path / "docsite" ).mkdir ()
251251 dest1 = tmp_path / "dest1"
252252 subprocess .run (
253- args = [str ( science_exe ) , "lift" , "build" , "--dest-dir" , str (dest1 )], check = True , cwd = tmp_path
253+ args = [science_exe , "lift" , "build" , "--dest-dir" , str (dest1 )], check = True , cwd = tmp_path
254254 )
255255 science_exe1 = dest1 / science_exe .name
256256 assert science_exe1 .is_file ()
@@ -382,7 +382,7 @@ def create_url_source_scie(
382382
383383 scie = dest / CURRENT_PLATFORM .binary_name (expected_name )
384384 result = subprocess .run (
385- args = [str ( science_exe ) , "lift" , * extra_lift_args , "build" , "--dest-dir" , str (dest ), "-" ],
385+ args = [science_exe , "lift" , * extra_lift_args , "build" , "--dest-dir" , str (dest ), "-" ],
386386 input = lift_toml_content ,
387387 stdout = subprocess .PIPE ,
388388 stderr = subprocess .PIPE ,
@@ -766,7 +766,7 @@ def test_pypy_provider(tmp_path: Path, science_exe: Path, version: str) -> None:
766766 chroot .mkdir (parents = True , exist_ok = True )
767767
768768 subprocess .run (
769- args = [str ( science_exe ) , "lift" , "build" , "--dest-dir" , str (dest ), "-" ],
769+ args = [science_exe , "lift" , "build" , "--dest-dir" , str (dest ), "-" ],
770770 input = dedent (
771771 f"""\
772772 [lift]
@@ -815,7 +815,7 @@ def test_scie_name_collision_with_file(tmp_path: Path, science_exe: Path) -> Non
815815
816816 subprocess .run (
817817 args = [
818- str ( science_exe ) ,
818+ science_exe ,
819819 "lift" ,
820820 "--file" ,
821821 f"exe={ exe } " ,
@@ -877,7 +877,7 @@ def test_pbs_provider_pre_releases(tmp_path: Path, science_exe: Path) -> None:
877877
878878 subprocess .run (
879879 args = [
880- str ( science_exe ) ,
880+ science_exe ,
881881 "lift" ,
882882 "--file" ,
883883 f"exe={ exe } " ,
@@ -952,7 +952,7 @@ def test_pbs_provider_freethreaded_builds(tmp_path: Path, science_exe: Path) ->
952952
953953 subprocess .run (
954954 args = [
955- str ( science_exe ) ,
955+ science_exe ,
956956 "lift" ,
957957 "--file" ,
958958 f"exe={ exe } " ,
@@ -1026,7 +1026,7 @@ def test_pbs_provider_version_suffix(tmp_path: Path, science_exe: Path) -> None:
10261026 chroot .mkdir (parents = True , exist_ok = True )
10271027
10281028 result = subprocess .run (
1029- args = [str ( science_exe ) , "lift" , "build" , "--dest-dir" , str (dest ), "-" ],
1029+ args = [science_exe , "lift" , "build" , "--dest-dir" , str (dest ), "-" ],
10301030 input = dedent (
10311031 """\
10321032 [lift]
@@ -1160,7 +1160,7 @@ def test_pbs_provider_version_suffix(tmp_path: Path, science_exe: Path) -> None:
11601160
11611161 subprocess .run (
11621162 args = [
1163- str ( science_exe ) ,
1163+ science_exe ,
11641164 "lift" ,
11651165 "--file" ,
11661166 f"exe={ exe } " ,
@@ -1222,7 +1222,7 @@ def test_load_dotenv(tmp_path: Path, science_exe: Path) -> None:
12221222 chroot .mkdir (parents = True , exist_ok = True )
12231223
12241224 subprocess .run (
1225- args = [str ( science_exe ) , "lift" , "build" , "--dest-dir" , str (dest ), "-" ],
1225+ args = [science_exe , "lift" , "build" , "--dest-dir" , str (dest ), "-" ],
12261226 input = dedent (
12271227 """\
12281228 [lift]
@@ -1296,7 +1296,7 @@ def test_custom_jump_nominal(tmp_path: Path, science_exe: Path, version: str) ->
12961296
12971297 cache_dir = tmp_path / "cache"
12981298 subprocess .run (
1299- args = [str ( science_exe ) , "lift" , "build" , "--dest-dir" , str (dest ), lift_manifest ],
1299+ args = [science_exe , "lift" , "build" , "--dest-dir" , str (dest ), lift_manifest ],
13001300 env = {** os .environ , "SCIENCE_CACHE_DIR" : str (cache_dir )},
13011301 check = True ,
13021302 )
@@ -1443,7 +1443,7 @@ def test_custom_jump_invalid(tmp_path: Path, science_exe: Path, digest: Digest)
14431443
14441444 cache_dir = tmp_path / "cache"
14451445 result = subprocess .run (
1446- args = [str ( science_exe ) , "lift" , "build" , "--dest-dir" , str (dest )],
1446+ args = [science_exe , "lift" , "build" , "--dest-dir" , str (dest )],
14471447 env = {** os .environ , "SCIENCE_CACHE_DIR" : str (cache_dir )},
14481448 cwd = chroot ,
14491449 stderr = subprocess .PIPE ,
0 commit comments