tests/debug: plug some resource leaks

This commit is contained in:
ed 2024-11-22 22:21:43 +00:00
parent 0e31cfa784
commit 2ab8924e2d
10 changed files with 73 additions and 6 deletions

View file

@ -178,6 +178,8 @@ class TestHttpCli(unittest.TestCase):
ap = os.path.join(vn.realpath, rem)
os.unlink(ap)
self.conn.shutdown()
def can_rw(self, fp):
# lowest non-neutral folder declares permissions
expect = fp.split("/")[:-1]