Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows unittest for virtualenvwrapper identifier is failing #14011

Closed
karthiknadig opened this issue Sep 21, 2020 · 0 comments · Fixed by #14012
Closed

Windows unittest for virtualenvwrapper identifier is failing #14011

karthiknadig opened this issue Sep 21, 2020 · 0 comments · Fixed by #14012
Assignees
Labels
area-internal Label for non-user facing issues bug Issue identified by VS Code Team member as probable bug

Comments

@karthiknadig
Copy link
Member

  1) Environment Identifier
       Virtualenvwrapper
         WORKON_HOME is set to its default value %USERPROFILE%\Envs on Windows:

      AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected

+ 'Unknown'
- 'VirtualEnvWrapper'
      + expected - actual

      -Unknown
      +VirtualEnvWrapper
      
      at Context.<anonymous> (src\test\pythonEnvironments\common\environmentIdentifier.unit.test.ts:153:20)

  2) Environment Identifier
       Virtualenvwrapper
         WORKON_HOME is set to a custom value:

      AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected

+ 'Unknown'
- 'VirtualEnvWrapper'
      + expected - actual

      -Unknown
      +VirtualEnvWrapper
      
      at Context.<anonymous> (src\test\pythonEnvironments\common\environmentIdentifier.unit.test.ts:161:20)

  3) Virtualenvwrapper Locator Tests
       WORKON_HOME is not set, and the interpreter is is in a subfolder:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  getDefaultDirStub.restore()

      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (src\test\pythonEnvironments\discovery\locators\virtualenvwrapperLocator.unit.test.ts:32:16)

  4) Virtualenvwrapper Locator Tests
       WORKON_HOME is set to a custom value, and the interpreter is is in a subfolder:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  getDefaultDirStub.returns(homeDir)

      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (src\test\pythonEnvironments\discovery\locators\virtualenvwrapperLocator.unit.test.ts:39:16)

@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug needs PR area-internal Label for non-user facing issues labels Sep 21, 2020
@kimadeline kimadeline self-assigned this Sep 21, 2020
@ghost ghost removed the needs PR label Sep 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-internal Label for non-user facing issues bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants