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

switch to using temp file for test_ids #24054

Merged
merged 8 commits into from
Sep 5, 2024

Conversation

eleanorjboyd
Copy link
Member

@eleanorjboyd eleanorjboyd commented Sep 4, 2024

first step in work on #23279

@eleanorjboyd eleanorjboyd added the bug Issue identified by VS Code Team member as probable bug label Sep 4, 2024
@eleanorjboyd eleanorjboyd marked this pull request as ready for review September 4, 2024 22:42
@eleanorjboyd eleanorjboyd self-assigned this Sep 4, 2024
python_files/unittestadapter/execution.py Outdated Show resolved Hide resolved
python_files/unittestadapter/execution.py Outdated Show resolved Hide resolved
python_files/unittestadapter/execution.py Show resolved Hide resolved
python_files/unittestadapter/execution.py Outdated Show resolved Hide resolved
python_files/vscode_pytest/run_pytest_script.py Outdated Show resolved Hide resolved
} 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
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?

Copy link
Member Author

@eleanorjboyd eleanorjboyd Sep 5, 2024

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
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 eleanorjboyd merged commit ef7c7e3 into microsoft:main Sep 5, 2024
40 checks passed
@eleanorjboyd eleanorjboyd deleted the fifo-eb branch September 5, 2024 20:02
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 <[email protected]>
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