[PATCH] selftest: close connections after tests in samba4.ldap.acl.python

Jamie McClymont jamiemcclymont at catalyst.net.nz
Tue Jan 9 00:55:29 UTC 2018


On 08/01/18 21:47, Andreas Schneider via samba-technical wrote:
> normally you have setup and teardown functions which should be
responsible for allocating and cleaning up memory

Hi Andreas

On top of what Andrew said, the particular reasoning here was that
super's teardown needs access to the admin user to delete things -- the
way in which cleanups are run in reverse order is very convenient here,
and allows cleanups to be added alongside where the resource is created
(so that someone adding more connections would remember to add the cleanup).

Thanks
- Jamie



More information about the samba-technical mailing list