Skip to content

switch to using temp file for test_ids - #24054

Merged
Eleanor Boyd (eleanorjboyd) merged 8 commits into
microsoft:mainfrom
eleanorjboyd:fifo-eb
Sep 5, 2024
Merged

Eleanor Boyd (eleanorjboyd) merged 8 commits into
microsoft:mainfrom
eleanorjboyd:fifo-eb

Conversation

@eleanorjboyd

@eleanorjboyd Eleanor Boyd (eleanorjboyd) commented Sep 4, 2024 •

Copy link
Copy Markdown

first step in work on #23279

@eleanorjboyd Eleanor Boyd (eleanorjboyd) added the bug Issue identified by VS Code Team member as probable bug label Sep 4, 2024
@eleanorjboyd
Eleanor Boyd (eleanorjboyd) marked this pull request as ready for review September 4, 2024 22:42
Comment thread python_files/unittestadapter/execution.py Outdated
Comment thread python_files/unittestadapter/execution.py Outdated
Comment thread python_files/unittestadapter/execution.py
Comment thread python_files/unittestadapter/execution.py Outdated
Comment thread python_files/vscode_pytest/run_pytest_script.py Outdated
} catch (error) {
// Handle the error when accessing the temp directory
traceError('Error accessing temp directory:', error, ' Attempt to use extension root dir instead');
tempFileName = path.join(EXTENSION_ROOT_DIR, '.temp', tempName);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to explicitly create the directory or does it automatically create on writeFile?

@eleanorjboyd Eleanor Boyd (eleanorjboyd) Sep 5, 2024 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideas on how to test this manually or with a test case? Seems like I can't mock tmpdir to include it in a test

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will show you a trick for a future PR

@eleanorjboyd
Eleanor Boyd (eleanorjboyd) merged commit ef7c7e3 into microsoft:main Sep 5, 2024
Anthony Kim (anthonykim1) pushed a commit to anthonykim1/vscode-python that referenced this pull request Sep 13, 2024
first step in work on
microsoft#23279

---------

Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
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.

2 participants