Skip to content

Commit

Permalink
Remove env var collection related debris in pythonStartup test (micro…
Browse files Browse the repository at this point in the history
…soft#24739)

Resolves: microsoft#24738
See explanation there.
  • Loading branch information
anthonykim1 authored Jan 23, 2025
1 parent 25411e5 commit 4322684
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/test/terminals/shellIntegration/pythonStartup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => {
setup(() => {
context = TypeMoq.Mock.ofType<IExtensionContext>();
globalEnvironmentVariableCollection = TypeMoq.Mock.ofType<GlobalEnvironmentVariableCollection>();
// Question: Why do we have to set up environmentVariableCollection and globalEnvironmentVariableCollection in this flip-flop way?
// Reference: /vscode-python/src/test/interpreters/activation/terminalEnvVarCollectionService.unit.test.ts
context.setup((c) => c.environmentVariableCollection).returns(() => globalEnvironmentVariableCollection.object);
context.setup((c) => c.storageUri).returns(() => Uri.parse('a'));

Expand Down

0 comments on commit 4322684

Please sign in to comment.