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 @@ -370,6 +370,13 @@ def test_filter_to_company(self):
370370 self .assertEqual (company , data ["env.company" ])
371371 self .assertEqual ("3.100" , data ["env.tag" ])
372372
373+ def test_filter_to_company_with_default (self ):
374+ company = "PythonTestSuite"
375+ data = self .run_py ([f"-V:{ company } /" ], env = dict (PY_PYTHON = "3.0" ))
376+ self .assertEqual ("X.Y.exe" , data ["LaunchCommand" ])
377+ self .assertEqual (company , data ["env.company" ])
378+ self .assertEqual ("3.100" , data ["env.tag" ])
379+
373380 def test_filter_to_tag (self ):
374381 company = "PythonTestSuite"
375382 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