Skip to content

fix pytest run script to add cwd to path - #21399

Merged
Eleanor Boyd (eleanorjboyd) merged 1 commit into
microsoft:mainfrom
eleanorjboyd:fix-pytest-run-script
Jun 9, 2023
Merged

Eleanor Boyd (eleanorjboyd) merged 1 commit into
microsoft:mainfrom
eleanorjboyd:fix-pytest-run-script

Conversation

@eleanorjboyd

Copy link
Copy Markdown

fixes #21397. The issue came from the setup of running a script that then runs pytest which is different then pytest discovery which runs pytest as a module. The run script didn't work since the script did not insert the cwd into the path like what is done when running a module. This change inserts the cwd.

@eleanorjboyd Eleanor Boyd (eleanorjboyd) added the bug Issue identified by VS Code Team member as probable bug label Jun 9, 2023
@eleanorjboyd
Eleanor Boyd (eleanorjboyd) marked this pull request as ready for review June 9, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to run pytest in rewrite, fails with wrong testID

2 participants