Skip to content

grass.gunittest: Use context manager for Popen calls in gunittest #6198

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

Merged
merged 3 commits into from
Aug 15, 2025

Conversation

echoix
Copy link
Member

@echoix echoix commented Aug 10, 2025

Similar to #6197, and another yet-to-file PR, context managers can, and should, be used with Popen.

This PR addresses the similar instances in gunittest code, the code I was working on closely today.
Maybe in the near future, we would get rid of the svn calls when doing tests, but I'm not finished investigating the impacts of it.

@echoix echoix requested a review from pesekon2 August 14, 2025 02:04
@echoix echoix merged commit e70e091 into OSGeo:main Aug 15, 2025
27 checks passed
@echoix echoix deleted the gunittest-popen-ctx-mgr branch August 15, 2025 04:14
@github-actions github-actions bot added this to the 8.5.0 milestone Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants