make it 5% faster

This commit is contained in:
ed
2024-07-31 17:51:53 +00:00
parent 746229846d
commit d5c9c8ebbd
8 changed files with 55 additions and 43 deletions

View File

@@ -168,6 +168,11 @@ class TestHttpCli(unittest.TestCase):
h, ret = self.put(url)
res = h.startswith("HTTP/1.1 201 ")
self.assertEqual(res, wok)
if wok:
vp = h.split("\nLocation: http://a:1/")[1].split("\r")[0]
vn, rem = self.asrv.vfs.get(vp, "*", False, False)
ap = os.path.join(vn.realpath, rem)
os.unlink(ap)
def can_rw(self, fp):
# lowest non-neutral folder declares permissions