mirror of
https://github.com/docker/compose.git
synced 2025-07-22 05:04:27 +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'
|
service = 'foo'
|
||||||
secret_source = 'bar'
|
secret_source = 'bar'
|
||||||
|
|
||||||
_, filename_path = tempfile.mkstemp()
|
fd, filename_path = tempfile.mkstemp()
|
||||||
|
os.close(fd)
|
||||||
self.addCleanup(os.remove, filename_path)
|
self.addCleanup(os.remove, filename_path)
|
||||||
|
|
||||||
def mock_get(key):
|
def mock_get(key):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user