Skip to content

Improve file handling in string_view.py test - #23886

Open
vepadulano wants to merge 2 commits into
root-project:masterfrom
vepadulano:python-reorganise-string-view-test
Open

vepadulano wants to merge 2 commits into
root-project:masterfrom
vepadulano:python-reorganise-string-view-test

Conversation

@vepadulano

Copy link
Copy Markdown
Member

Separate the logic of the test in a different function. In the function
calling the test, i.e. test_rdataframe, the file removal can be
scheduled in a finally block after the end of the function scope using
RDataFrame. This should ensure that the RDataFrame object has been
destroyed and the file can be safely removed on all platforms (including
Windows).

Separate the logic of the test in a different function. In the function
calling the test, i.e. `test_rdataframe`, the file removal can be
scheduled in a `finally` block after the end of the function scope using
RDataFrame. This should ensure that the RDataFrame object has been
destroyed and the file can be safely removed on all platforms (including
Windows).

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant