mirror of
https://github.com/docker/compose.git
synced 2026-07-10 10:14:13 +00:00
Cleanup all open files
If the fd is not closed the cleanup will fail on windows. Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
parent
4be2fa010a
commit
f8142a899c
1 changed files with 2 additions and 1 deletions
|
|
@ -880,7 +880,8 @@ class ProjectTest(unittest.TestCase):
|
|||
service = 'foo'
|
||||
secret_source = 'bar'
|
||||
|
||||
_, filename_path = tempfile.mkstemp()
|
||||
fd, filename_path = tempfile.mkstemp()
|
||||
os.close(fd)
|
||||
self.addCleanup(os.remove, filename_path)
|
||||
|
||||
def mock_get(key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue