File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,13 @@ def test_filter_to_company(self):
369369 self .assertEqual (company , data ["env.company" ])
370370 self .assertEqual ("3.100" , data ["env.tag" ])
371371
372+ def test_filter_to_company_with_default (self ):
373+ company = "PythonTestSuite"
374+ data = self .run_py ([f"-V:{ company } /" ], env = dict (PY_PYTHON = "3.0" ))
375+ self .assertEqual ("X.Y.exe" , data ["LaunchCommand" ])
376+ self .assertEqual (company , data ["env.company" ])
377+ self .assertEqual ("3.100" , data ["env.tag" ])
378+
372379 def test_filter_to_tag (self ):
373380 company = "PythonTestSuite"
374381 data = self .run_py ([f"-V:3.100" ])
Original file line number Diff line number Diff line change 1+ Fix :file: `py.exe ` launcher handling of ``-V:<company>/ `` option when
2+ default preferences have been set in environment variables or configuration
3+ files.
Original file line number Diff line number Diff line change @@ -653,6 +653,7 @@ parseCommandLine(SearchInfo *search)
653653 search -> tag = argStart ;
654654 }
655655 search -> tagLength = (int )(tail - search -> tag );
656+ search -> allowDefaults = false;
656657 search -> restOfCmdLine = tail ;
657658 } else if (MATCHES (L"0" ) || MATCHES (L"-list" )) {
658659 search -> list = true;
You can’t perform that action at this time.
0 commit comments