Skip to content

Defer removing tmpdir#10614

Open
ykadowak wants to merge 1 commit intopytest-dev:mainfrom
ykadowak:atexit_remove
Open

Defer removing tmpdir#10614
ykadowak wants to merge 1 commit intopytest-dev:mainfrom
ykadowak:atexit_remove

Conversation

@ykadowak
Copy link
Copy Markdown
Contributor

@ykadowak ykadowak commented Dec 26, 2022

Partially addresses #10564.

In the discussion on the issue, I believe majority agreed to defer the removal of temporary directories. Therefor, this PR has been implemented that way. If there needs to be more discussions, we can do it in the thread of this PR I think.

Also, I am planning to make another PR after this based on #10546 for the following reasons.

  1. As I mentioned here, a lot of test cases need to be removed because of this PR's change, which is not ideal for the maintainability.
  2. By separating Stop using atexit and add integration tests for tmpdir fixture #10546, we can easily revert the commit and rollback to this PR if some regression happens.

CC: @The-Compiler @RonnyPfannschmidt @nicoddemus

@ykadowak ykadowak changed the title Defer removing tmpdir Defer removing tmpdir Jan 1, 2023
@ykadowak
Copy link
Copy Markdown
Contributor Author

Can this PR be reviewed?
The situation of the issue is being incomplete right now.

Please leave any questions if something is not clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant