The test in test_filter_to_company() executes a dry run of the launcher with the argument "-V:PythonTestSuite/". The filter is incomplete, but the test expects the launcher to select "PythonTestSuite/3.100", with the command "X.Y.exe". In practice, however, a default version set in "py.ini" overrides an incomplete filter by company. I assume this is a bug in the launcher, that it's supposed to select the best match among the installations for the given company instead of using the default version. That's how it behaves if no default is set in "py.ini" or the "PY_PYTHON" environment variable.
Activity
zooba commented on Oct 19, 2022
Yes correct, it shouldn't use the default value in this case.
pythongh-98414: py.exe launcher does not use defaults for -V:company/…
gh-98414: py.exe launcher does not use defaults for -V:company/ option (
pythongh-98414: py.exe launcher does not use defaults for -V:company/…
gh-98414: py.exe launcher does not use defaults for -V:company/ option (
Merge branch 'main' into typewatch
gh-98414: py.exe launcher does not use defaults for -V:company/ option (
hauntsaninja commented on Oct 26, 2022
Thanks, looks like this was completed