This kept failing in a local make test not being able to cleanup the test
directory in the *subsequent* test test_create_reparse_nonempty_directory().
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
err = e.args[0]
if (err != ntstatus.NT_STATUS_ACCESS_DENIED):
raise
+ finally:
+ conn.close(dir_fd)
+ self.clean_file(conn, dirname)
if (err == ntstatus.NT_STATUS_ACCESS_DENIED):
self.fail("Could not set reparse point on directory")
- conn.delete_on_close(fd, 1)
+ conn.close(dir_fd)
+ self.clean_file(conn, dirname)
return
with self.assertRaises(NTSTATUSError) as e: