@@ -139,8 +139,8 @@ def test_read_shebang_windowed(fake_config, tmp_path, script, expect, windowed):
139139def test_default_py_shebang (fake_config , tmp_path ):
140140 inst = _fake_install ("1.0" , company = "PythonCore" , prefix = PurePath ("C:\\ TestRoot" ), default = True )
141141 inst ["run-for" ] = [
142- dict (name = "python .exe" , target = ".\\ python .exe" ),
143- dict (name = "pythonw .exe" , target = ".\\ pythonw .exe" , windowed = 1 ),
142+ dict (name = "othername .exe" , target = ".\\ test-binary-1.0 .exe" ),
143+ dict (name = "othernamew .exe" , target = ".\\ test-binary-1.0-w .exe" , windowed = 1 ),
144144 ]
145145 fake_config .installs [:] = [inst ]
146146
@@ -150,11 +150,13 @@ def t(n):
150150 # Finds the install's default executable
151151 assert t ("python" )["executable" ].match ("test-binary-1.0.exe" )
152152 assert t ("py" )["executable" ].match ("test-binary-1.0.exe" )
153+ assert t ("python3" )["executable" ].match ("test-binary-1.0.exe" )
153154 assert t ("python1.0" )["executable" ].match ("test-binary-1.0.exe" )
154155 # Finds the install's run-for executable with windowed=1
155- assert t ("pythonw" )["executable" ].match ("pythonw.exe" )
156- assert t ("pyw" )["executable" ].match ("pythonw.exe" )
157- assert t ("pythonw1.0" )["executable" ].match ("pythonw.exe" )
156+ assert t ("pythonw" )["executable" ].match ("test-binary-1.0-w.exe" )
157+ assert t ("pyw" )["executable" ].match ("test-binary-1.0-w.exe" )
158+ assert t ("pythonw3" )["executable" ].match ("test-binary-1.0-w.exe" )
159+ assert t ("pythonw1.0" )["executable" ].match ("test-binary-1.0-w.exe" )
158160
159161
160162def test_unmanaged_py_shebang (fake_config , tmp_path ):
0 commit comments