Skip to content

Improve file handling in string_view.py test - #23886

Merged
vepadulano merged 2 commits into
root-project:masterfrom
vepadulano:python-reorganise-string-view-test
Nov 2, 2026
Merged

vepadulano merged 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).

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Test Results

    21 files      21 suites   3d 9h 11m 6s ⏱️
 3 880 tests  3 880 ✅ 0 💤 0 ❌
72 153 runs  72 153 ✅ 0 💤 0 ❌

Results for commit cd680ff.

♻️ This comment has been updated with latest results.

@vepadulano vepadulano added the clean build Ask CI to do non-incremental build on PR label Oct 30, 2026
@vepadulano vepadulano closed this Oct 30, 2026
@vepadulano vepadulano reopened this Oct 30, 2026

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Just two small improvement suggestion.

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).
@vepadulano
vepadulano force-pushed the python-reorganise-string-view-test branch from 8b54d03 to cd680ff Compare November 2, 2026 08:59
@vepadulano
vepadulano merged commit aaeed12 into root-project:master Nov 2, 2026
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean build Ask CI to do non-incremental build on PR in:Python Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants