Skip to content

simulate_psf: use context manager with /dev/null#1026

Merged
DougBurke merged 1 commit intocxcsds:mainfrom
kglotfelty:sim_psf_Wall_warning
Mar 2, 2026
Merged

simulate_psf: use context manager with /dev/null#1026
DougBurke merged 1 commit intocxcsds:mainfrom
kglotfelty:sim_psf_Wall_warning

Conversation

@kglotfelty
Copy link
Member

close /dev/null when running marx tools.

@DougBurke
Copy link
Member

Is this a "clean up" or is there a subtle issue somewhere (I can imagine that it ensures the handle is closed which may avoid strange messages in certain circumstances)?

@DougBurke
Copy link
Member

Oh - is it essentially #1025 ?

@kglotfelty
Copy link
Member Author

it's just cleanup. similar to #1025 but separate. I ran our tests with PYTHON_WARNING=all (or whatever the magic is to print all warnings, similar to -Wall) to try to catch any other problems like with the pycrates thing we found the day after the release and these were things it complained about. Nothing for user to worry about.

@DougBurke DougBurke merged commit 6f4672d into cxcsds:main Mar 2, 2026
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.

2 participants