Explicitly close files opened by selftest
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 19 Sep 2020 14:32:11 +0000 (14:32 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sat, 19 Sep 2020 14:32:11 +0000 (14:32 +0000)
Newer Python interpreters emit a warning during cleanup if open
files are not closed prior to termination. Our selftest opens the
pidfile for reading in a couple of places, as well as logfiles to
capture stdout/stderr. Open them in context blocks so they will be
closed on return rather than remaining open until the process ends.


No differences found