mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Merge pull request #6986 from rumpl/fix-unit-test-close-fd
Cleanup all open files
This commit is contained in:
commit
cfc48f2c13
@ -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…
x
Reference in New Issue
Block a user