Fix runner tests on windows

This commit is contained in:
Daniel A. Wozniak 2020-04-26 04:32:54 +00:00 committed by Daniel Wozniak
parent 8f6ac02c32
commit 1036056b0c

View file

@ -47,6 +47,10 @@ class RunnerReturnsTest(ShellCase):
"""
Close the tempfile.NamedTemporaryFile object, cleaning it up
"""
try:
self.conf.close()
except OSError:
pass
salt.utils.files.rm_rf(self.master_d_dir)
# Force a reload of the configuration now that our temp config file has
# been removed.