浏览代码

tearDown tmp_volumes array itself in VolumeTest

Each volume in the array holds a reference to a docker.client.Client object and
therefore a connection pool which leaves fds open once the test has completed.

Signed-off-by: Ian Campbell <[email protected]>
Ian Campbell 9 年之前
父节点
当前提交
3124fec01a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/integration/volume_test.py

+ 1 - 0
tests/integration/volume_test.py

@@ -17,6 +17,7 @@ class VolumeTest(DockerClientTestCase):
                 self.client.remove_volume(volume.full_name)
             except DockerException:
                 pass
+        del self.tmp_volumes
 
     def create_volume(self, name, driver=None, opts=None, external=None):
         if external and isinstance(external, bool):